]> git.proxmox.com Git - rustc.git/blame - src/test/ui/resolve/issue-21221-2.rs
Update unsuspicious file list
[rustc.git] / src / test / ui / resolve / issue-21221-2.rs
CommitLineData
7453a54e
SL
1pub mod foo {
2 pub mod bar {
3 // note: trait T is not public, but being in the current
4 // crate, it's fine to show it, since the programmer can
5 // decide to make it public based on the suggestion ...
54a0048b 6 pub trait T {}
7453a54e
SL
7 }
8 // imports should be ignored:
9 use self::bar::T;
10}
11
12pub mod baz {
13 pub use foo;
14 pub use std::ops::{Mul as T};
15}
16
17struct Foo;
18impl T for Foo { }
ff7c6d11 19//~^ ERROR cannot find trait `T`
0531ce1d
XL
20
21fn main() {}