mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-31 13:04:42 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			25 lines
		
	
	
		
			456 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
		
			456 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| #![allow(dead_code)]
 | |
| #![deny(unused_imports)]
 | |
| 
 | |
| mod foo {
 | |
|     pub mod bar {
 | |
|         pub mod baz {
 | |
|             pub struct Bar();
 | |
|         }
 | |
|         pub mod foobar {}
 | |
|     }
 | |
| 
 | |
|     pub struct Foo();
 | |
| }
 | |
| 
 | |
| use foo::{Foo, bar::{baz::{}, foobar::*}, *};
 | |
|     //~^ ERROR unused imports: `*`, `Foo`, `baz::{}`, and `foobar::*`
 | |
| use foo::bar::baz::{*, *};
 | |
|     //~^ ERROR unused import: `*`
 | |
| use foo::{};
 | |
|     //~^ ERROR unused import: `foo::{}`
 | |
| 
 | |
| fn main() {
 | |
|     let _: Bar;
 | |
| }
 | 
