mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-11-04 06:56:14 +00:00 
			
		
		
		
	this directive prevents compiletest from adding any implicit and automatic --check-cfg arguments
		
			
				
	
	
		
			13 lines
		
	
	
		
			330 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			330 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
// #120427
 | 
						|
// This test checks that when a single cfg has a value for user's specified name
 | 
						|
//
 | 
						|
//@ check-pass
 | 
						|
//@ no-auto-check-cfg
 | 
						|
//@ compile-flags: --check-cfg=cfg(foo,values("my_value")) --check-cfg=cfg(bar,values("my_value"))
 | 
						|
 | 
						|
#[cfg(my_value)]
 | 
						|
//~^ WARNING unexpected `cfg` condition name: `my_value`
 | 
						|
fn x() {}
 | 
						|
 | 
						|
fn main() {}
 |