2016-02-13 19:47:27 -06:00
|
|
|
// 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 {}
|
2017-11-20 06:13:27 -06:00
|
|
|
//~^ ERROR cannot find trait `T`
|
2016-02-13 19:47:27 -06:00
|
|
|
|
|
|
|
fn main() {
|
|
|
|
println!("Hello, world!");
|
|
|
|
}
|