about summary refs log tree commit diff
path: root/tests/ui/rust-2018/local-path-suggestions-2018.rs
blob: bdf83ad8b8ff5c8d695eb10a8bd23c4cb890de01 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
//@ aux-build:baz.rs
//@ compile-flags:--extern baz
//@ edition:2018

mod foo {
    pub type Bar = u32;
}

mod bazz {
    use foo::Bar; //~ ERROR unresolved import `foo`

    fn baz() {
        let x: Bar = 22;
    }
}

use foo::Bar;

use foobar::Baz; //~ ERROR unresolved import `foobar`

fn main() { }