mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-11-03 22:49:17 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			11 lines
		
	
	
		
			171 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			11 lines
		
	
	
		
			171 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
trait MyTrait { type X; }
 | 
						|
struct MyStruct;
 | 
						|
impl MyTrait for MyStruct {
 | 
						|
    type X = ();
 | 
						|
}
 | 
						|
 | 
						|
fn main() {
 | 
						|
    let foo: MyTrait::X;
 | 
						|
    //~^ ERROR ambiguous associated type
 | 
						|
}
 |