]> git.proxmox.com Git - rustc.git/blame - src/test/ui/import.rs
New upstream version 1.49.0+dfsg1
[rustc.git] / src / test / ui / import.rs
CommitLineData
223e47cc 1use zed::bar;
9e0c209e 2use 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 8mod 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
14fn main() {
476ff2be 15 zed::foo(); //~ ERROR `foo` is private
7453a54e 16 bar();
223e47cc 17}