]>
Commit | Line | Data |
---|---|---|
223e47cc | 1 | use zed::bar; |
9e0c209e | 2 | use zed::baz; //~ ERROR unresolved import `zed::baz` [E0432] |
532ac7d7 XL |
3 | //~| no `baz` in `zed` |
4 | //~| HELP a similar name exists in the module | |
5 | //~| SUGGESTION bar | |
1a4d82fc JJ |
6 | |
7 | ||
223e47cc | 8 | mod zed { |
1a4d82fc | 9 | pub fn bar() { println!("bar"); } |
9e0c209e SL |
10 | use foo; //~ ERROR unresolved import `foo` [E0432] |
11 | //~^ no `foo` in the root | |
7453a54e SL |
12 | } |
13 | ||
14 | fn main() { | |
476ff2be | 15 | zed::foo(); //~ ERROR `foo` is private |
7453a54e | 16 | bar(); |
223e47cc | 17 | } |