mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-31 13:04:42 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			8 lines
		
	
	
		
			210 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			8 lines
		
	
	
		
			210 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| // Checks what happens when `public` is used instead of the correct, `pub`
 | |
| // Won't give help message for this case
 | |
| 
 | |
| public let x = 1;
 | |
| //~^ ERROR expected one of `!` or `::`, found keyword `let`
 | |
| 
 | |
| fn main() { }
 | 
