]> git.lizzy.rs Git - rust.git/blob - src/test/ui/resolve/issue-21221-3.rs
Rollup merge of #87180 - notriddle:notriddle/sidebar-keyboard-mobile, r=GuillaumeGomez
[rust.git] / src / test / ui / resolve / issue-21221-3.rs
1 // testing whether the lookup mechanism picks up types
2 // defined in the outside crate
3
4 // aux-build:issue-21221-3.rs
5
6 extern crate issue_21221_3;
7
8 struct Foo;
9
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`
17 fn main() {
18     println!("Hello, world!");
19 }