]> git.lizzy.rs Git - rust.git/blob - tests/ui/rust-2018/local-path-suggestions-2015.rs
Rollup merge of #103418 - Aaron1011:macro-semicolon-future-incompat, r=davidtwco
[rust.git] / tests / ui / rust-2018 / local-path-suggestions-2015.rs
1 // aux-build:baz.rs
2 // compile-flags:--extern baz
3 // edition:2015
4
5 // This test exists to demonstrate the behaviour of the import suggestions
6 // from the `local-path-suggestions-2018.rs` test when not using the 2018 edition.
7
8 extern crate baz as aux_baz;
9
10 mod foo {
11     pub type Bar = u32;
12 }
13
14 mod baz {
15     use foo::Bar;
16
17     fn baz() {
18         let x: Bar = 22;
19     }
20 }
21
22 use foo::Bar;
23
24 use foobar::Baz; //~ ERROR unresolved import `foobar`
25
26 fn main() { }