mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-11-03 22:49:17 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			11 lines
		
	
	
		
			175 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			11 lines
		
	
	
		
			175 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
#![deny(non_snake_case)]
 | 
						|
#![allow(dead_code)]
 | 
						|
 | 
						|
mod FooBar { //~ ERROR module `FooBar` should have a snake case name
 | 
						|
    pub struct S;
 | 
						|
}
 | 
						|
 | 
						|
fn f(_: FooBar::S) { }
 | 
						|
 | 
						|
fn main() { }
 |