summaryrefslogtreecommitdiffstats
path: root/src/test/ui/imports/import.rs
blob: 3170dd2fae10824b9e338fc985ca203cd093909f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use zed::bar;
use zed::baz; //~ ERROR unresolved import `zed::baz` [E0432]
              //~| no `baz` in `zed`
              //~| HELP a similar name exists in the module
              //~| SUGGESTION bar


mod zed {
    pub fn bar() { println!("bar"); }
    use foo; //~ ERROR unresolved import `foo` [E0432]
             //~^ no `foo` in the root
}

fn main() {
    zed::foo(); //~ ERROR `foo` is private
    bar();
}