mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-31 04:57:19 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			15 lines
		
	
	
		
			214 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			214 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| // run-rustfix
 | |
| #![allow(non_snake_case)]
 | |
| mod A {
 | |
|     pub trait Trait {}
 | |
|     impl Trait for i32 {}
 | |
| }
 | |
| 
 | |
| mod B {
 | |
|     pub struct A<H: A::Trait>(pub H); //~ ERROR cannot find trait
 | |
| }
 | |
| 
 | |
| fn main() {
 | |
|     let _ = B::A(42);
 | |
| }
 | 
