mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-31 21:16:44 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			19 lines
		
	
	
		
			342 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			342 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| // Issue: 100461, Try to give a helpful diagnostic even when the next struct field has an attribute.
 | |
| //@ run-rustfix
 | |
| 
 | |
| struct Feelings {
 | |
|     owo: bool,
 | |
|     //~^ ERROR expected `,`, or `}`, found `#`
 | |
|     #[allow(unused)]
 | |
|     uwu: bool,
 | |
| }
 | |
| 
 | |
| impl Feelings {
 | |
|     #[allow(unused)]
 | |
|     fn hmm(&self) -> bool {
 | |
|         self.owo
 | |
|     }
 | |
| }
 | |
| 
 | |
| fn main() { }
 | 
