1 // testing whether the lookup mechanism picks up types
2 // defined in the outside crate
4 // aux-build:issue-21221-3.rs
6 extern crate issue_21221_3;
10 // NOTE: This shows only traits accessible from the current
11 // crate, thus the two private entities:
12 // `issue_21221_3::outer::private_module::OuterTrait` and
13 // `issue_21221_3::outer::public_module::OuterTrait`
14 // are hidden from the view.
15 impl OuterTrait for Foo {}
16 //~^ ERROR cannot find trait `OuterTrait`
18 println!("Hello, world!");