2018-09-20 10:15:52 -05:00
|
|
|
// aux-build:baz.rs
|
|
|
|
// compile-flags:--extern baz
|
2018-09-28 04:32:04 -05:00
|
|
|
// edition:2015
|
|
|
|
|
|
|
|
// This test exists to demonstrate the behaviour of the import suggestions
|
|
|
|
// from the `local-path-suggestions-2018.rs` test when not using the 2018 edition.
|
|
|
|
|
|
|
|
extern crate baz as aux_baz;
|
2018-09-20 10:15:52 -05:00
|
|
|
|
|
|
|
mod foo {
|
2018-09-28 04:32:04 -05:00
|
|
|
pub type Bar = u32;
|
2018-09-20 10:15:52 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
mod baz {
|
|
|
|
use foo::Bar;
|
|
|
|
|
|
|
|
fn baz() {
|
|
|
|
let x: Bar = 22;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
use foo::Bar;
|
|
|
|
|
2018-11-27 03:56:36 -06:00
|
|
|
use foobar::Baz; //~ ERROR unresolved import `foobar`
|
2018-09-20 10:15:52 -05:00
|
|
|
|
|
|
|
fn main() { }
|