mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-31 04:57:19 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			14 lines
		
	
	
		
			229 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			229 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| mod foo {
 | |
|     pub mod bar {
 | |
|         pub fn drop() {}
 | |
|     }
 | |
| }
 | |
| 
 | |
| use foo::bar::self;
 | |
| //~^ ERROR `self` imports are only allowed within a { } list
 | |
| 
 | |
| fn main() {
 | |
|     // Because of error recovery this shouldn't error
 | |
|     bar::drop();
 | |
| }
 | 
