]> git.lizzy.rs Git - rust.git/blob - src/test/ui/import.rs
Rollup merge of #61207 - taiki-e:arbitrary_self_types-lifetime-elision-2, r=Centril
[rust.git] / src / test / ui / import.rs
1 use zed::bar;
2 use zed::baz; //~ ERROR unresolved import `zed::baz` [E0432]
3               //~| no `baz` in `zed`
4               //~| HELP a similar name exists in the module
5               //~| SUGGESTION bar
6
7
8 mod zed {
9     pub fn bar() { println!("bar"); }
10     use foo; //~ ERROR unresolved import `foo` [E0432]
11              //~^ no `foo` in the root
12 }
13
14 fn main() {
15     zed::foo(); //~ ERROR `foo` is private
16     bar();
17 }