mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-31 13:04:42 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			17 lines
		
	
	
		
			394 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			394 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| struct X {
 | |
|     a: u8 /** document a */,
 | |
|     //~^ ERROR found a documentation comment that doesn't document anything
 | |
|     //~| HELP if a comment was intended use `//`
 | |
| }
 | |
| 
 | |
| struct Y {
 | |
|     a: u8 /// document a
 | |
|     //~^ ERROR found a documentation comment that doesn't document anything
 | |
|     //~| HELP if a comment was intended use `//`
 | |
| }
 | |
| 
 | |
| fn main() {
 | |
|     let x = X { a: 1 };
 | |
|     let y = Y { a: 1 };
 | |
| }
 | 
