]> git.proxmox.com Git - rustc.git/blame - src/test/ui/import.rs
New upstream version 1.33.0+dfsg1
[rustc.git] / src / test / ui / import.rs
CommitLineData
223e47cc 1use zed::bar;
9e0c209e
SL
2use zed::baz; //~ ERROR unresolved import `zed::baz` [E0432]
3 //~^ no `baz` in `zed`. Did you mean to use `bar`?
1a4d82fc
JJ
4
5
223e47cc 6mod 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
12fn main() {
476ff2be 13 zed::foo(); //~ ERROR `foo` is private
7453a54e 14 bar();
223e47cc 15}