mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-31 21:16:44 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			7 lines
		
	
	
		
			244 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			7 lines
		
	
	
		
			244 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| fn main() {
 | |
|     cfg!(); //~ ERROR macro requires a cfg-pattern
 | |
|     cfg!(123); //~ ERROR expected identifier
 | |
|     cfg!(foo = 123); //~ ERROR literal in `cfg` predicate value must be a string
 | |
|     cfg!(foo, bar); //~ ERROR expected 1 cfg-pattern
 | |
| }
 | 
