mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-31 21:16:44 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			18 lines
		
	
	
		
			254 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			254 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| //@ check-pass
 | |
| 
 | |
| pub struct Foo(bar::Bar);
 | |
| 
 | |
| pub mod bar {
 | |
|     pub struct Foo(pub Bar);
 | |
|     pub struct Bar(pub char);
 | |
| }
 | |
| 
 | |
| pub fn warning() -> Foo {
 | |
|     use bar::*;
 | |
|     #[deny(unused_imports)]
 | |
|     use self::Foo; // no error
 | |
|     Foo(Bar('a'))
 | |
| }
 | |
| 
 | |
| fn main() {}
 | 
