]>
Commit | Line | Data |
---|---|---|
223e47cc | 1 | use zed::bar; |
9e0c209e SL |
2 | use zed::baz; //~ ERROR unresolved import `zed::baz` [E0432] |
3 | //~^ no `baz` in `zed`. Did you mean to use `bar`? | |
1a4d82fc JJ |
4 | |
5 | ||
223e47cc | 6 | mod zed { |
1a4d82fc | 7 | pub fn bar() { println!("bar"); } |
9e0c209e SL |
8 | use foo; //~ ERROR unresolved import `foo` [E0432] |
9 | //~^ no `foo` in the root | |
7453a54e SL |
10 | } |
11 | ||
12 | fn main() { | |
476ff2be | 13 | zed::foo(); //~ ERROR `foo` is private |
7453a54e | 14 | bar(); |
223e47cc | 15 | } |