]> git.lizzy.rs Git - rust.git/blob - src/test/ui/rust-2018/local-path-suggestions-2018.rs
Auto merge of #93718 - thomcc:used-macho, r=pnkfelix
[rust.git] / src / test / ui / rust-2018 / local-path-suggestions-2018.rs
1 // aux-build:baz.rs
2 // compile-flags:--extern baz
3 // edition:2018
4
5 mod foo {
6     pub type Bar = u32;
7 }
8
9 mod bazz {
10     use foo::Bar; //~ ERROR unresolved import `foo`
11
12     fn baz() {
13         let x: Bar = 22;
14     }
15 }
16
17 use foo::Bar;
18
19 use foobar::Baz; //~ ERROR unresolved import `foobar`
20
21 fn main() { }