mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-31 13:04:42 +00:00 
			
		
		
		
	 87c2f9a5be
			
		
	
	
		87c2f9a5be
		
	
	
	
	
		
			
			This reverts commit 1d35638dc38dbfbf1cc2a9823135dfcf3c650169, reversing changes made to f23a80a4c2fbca593b64e70f5970368824b4c5e9.
		
			
				
	
	
		
			21 lines
		
	
	
		
			600 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			600 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| #![feature(coverage_attribute)]
 | |
| //@ edition: 2021
 | |
| //@ reference: attributes.coverage.syntax
 | |
| 
 | |
| // Check that yes/no in `#[coverage(yes)]` and `#[coverage(no)]` must be bare
 | |
| // words, not part of a more complicated substructure.
 | |
| 
 | |
| #[coverage(yes(milord))] //~ ERROR malformed `coverage` attribute input
 | |
| fn yes_list() {}
 | |
| 
 | |
| #[coverage(no(milord))] //~ ERROR malformed `coverage` attribute input
 | |
| fn no_list() {}
 | |
| 
 | |
| #[coverage(yes = "milord")] //~ ERROR malformed `coverage` attribute input
 | |
| fn yes_key() {}
 | |
| 
 | |
| #[coverage(no = "milord")] //~ ERROR malformed `coverage` attribute input
 | |
| fn no_key() {}
 | |
| 
 | |
| fn main() {}
 |