mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-30 20:44:34 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			10 lines
		
	
	
		
			286 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			10 lines
		
	
	
		
			286 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| // Issue #118164: recovery path leaving unemitted error behind
 | |
| fn bar() -> String {
 | |
|     #[cfg(feature = )]
 | |
|     [1, 2, 3].iter().map().collect::<String>() //~ ERROR expected `;`, found `#`
 | |
|     #[attr] //~ ERROR expected statement after outer attribute
 | |
| }
 | |
| fn main() {
 | |
|     let _ = bar();
 | |
| }
 | 
