mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-11-04 06:56:14 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			16 lines
		
	
	
		
			259 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			259 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
// testing whether the lookup mechanism picks up types
 | 
						|
// defined in the outside crate
 | 
						|
 | 
						|
//@ aux-build:issue-21221-4.rs
 | 
						|
 | 
						|
extern crate issue_21221_4;
 | 
						|
 | 
						|
struct Foo;
 | 
						|
 | 
						|
impl T for Foo {}
 | 
						|
//~^ ERROR cannot find trait `T`
 | 
						|
 | 
						|
fn main() {
 | 
						|
    println!("Hello, world!");
 | 
						|
}
 |