]>
Commit | Line | Data |
---|---|---|
7453a54e SL |
1 | // testing whether the lookup mechanism picks up types |
2 | // defined in the outside crate | |
3 | ||
4 | #![crate_type="lib"] | |
5 | ||
6 | pub mod outer { | |
7 | // should suggest this | |
8 | pub trait OuterTrait {} | |
9 | ||
10 | // should not suggest this since the module is private | |
11 | mod private_module { | |
12 | pub trait OuterTrait {} | |
13 | } | |
14 | ||
15 | // should not suggest since the trait is private | |
16 | pub mod public_module { | |
17 | trait OuterTrait {} | |
18 | } | |
19 | } |