]> git.proxmox.com Git - rustc.git/blame - src/test/ui/resolve/auxiliary/issue-21221-3.rs
New upstream version 1.67.1+dfsg1
[rustc.git] / src / test / ui / resolve / auxiliary / issue-21221-3.rs
CommitLineData
7453a54e
SL
1// testing whether the lookup mechanism picks up types
2// defined in the outside crate
3
4#![crate_type="lib"]
5
6pub 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}