mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-11-04 06:56:14 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			12 lines
		
	
	
		
			303 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			303 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
// Check that we do not ICE due to unresolved segments in visibility path.
 | 
						|
#![crate_type = "lib"]
 | 
						|
 | 
						|
extern crate alloc as b;
 | 
						|
 | 
						|
mod foo {
 | 
						|
    mod bar {
 | 
						|
        pub(in b::string::String::newy) extern crate alloc as e;
 | 
						|
        //~^ ERROR failed to resolve: `String` is a struct, not a module [E0433]
 | 
						|
    }
 | 
						|
}
 |