mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-31 04:57:19 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			15 lines
		
	
	
		
			459 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			459 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| // Checks that rustc correctly errors when passed an invalid lint with
 | |
| // `--force-warn`. This is a regression test for issue #86958.
 | |
| 
 | |
| //@ check-pass
 | |
| //@ compile-flags: --force-warn foo-qux
 | |
| //@ dont-require-annotations: NOTE
 | |
| 
 | |
| fn main() {}
 | |
| 
 | |
| //~? WARN unknown lint: `foo_qux`
 | |
| //~? WARN unknown lint: `foo_qux`
 | |
| //~? WARN unknown lint: `foo_qux`
 | |
| //~? NOTE requested on the command line with `--force-warn foo_qux`
 | |
| //~? NOTE `#[warn(unknown_lints)]` on by default
 | 
