]>
Commit | Line | Data |
---|---|---|
7453a54e SL |
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 ... | |
54a0048b | 6 | pub trait T {} |
7453a54e SL |
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 { } | |
ff7c6d11 | 19 | //~^ ERROR cannot find trait `T` |
0531ce1d XL |
20 | |
21 | fn main() {} |