mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-31 13:04:42 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			19 lines
		
	
	
		
			299 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			299 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| // All constant items (associated or otherwise) may syntactically use `_` as a name.
 | |
| 
 | |
| // check-pass
 | |
| 
 | |
| fn main() {}
 | |
| 
 | |
| #[cfg(FALSE)]
 | |
| const _: () = {
 | |
|     pub trait A {
 | |
|         const _: () = ();
 | |
|     }
 | |
|     impl A for () {
 | |
|         const _: () = ();
 | |
|     }
 | |
|     impl dyn A {
 | |
|         const _: () = ();
 | |
|     }
 | |
| };
 | 
