mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-31 21:16:44 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			12 lines
		
	
	
		
			289 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			289 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| macro_rules! cbor_map {
 | |
|     ($key:expr) => {
 | |
|         $key.signum();
 | |
|         //~^ ERROR can't call method `signum` on ambiguous numeric type `{integer}` [E0689]
 | |
|     };
 | |
| }
 | |
| 
 | |
| fn main() {
 | |
|     cbor_map! { #[cfg(test)] 4};
 | |
|     //~^ ERROR removing an expression is not supported in this position
 | |
| }
 | 
