]> git.lizzy.rs Git - rust.git/blob - src/test/ui/resolve/issue-21221-2.rs
Rollup merge of #87180 - notriddle:notriddle/sidebar-keyboard-mobile, r=GuillaumeGomez
[rust.git] / src / test / ui / resolve / issue-21221-2.rs
1 pub 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 ...
6         pub trait T {}
7     }
8     // imports should be ignored:
9     use self::bar::T;
10 }
11
12 pub mod baz {
13     pub use foo;
14     pub use std::ops::{Mul as T};
15 }
16
17 struct Foo;
18 impl T for Foo { }
19 //~^ ERROR cannot find trait `T`
20
21 fn main() {}