2018-09-20 10:15:52 -05:00
|
|
|
// aux-build:baz.rs
|
|
|
|
// compile-flags:--extern baz
|
|
|
|
// edition:2018
|
|
|
|
|
|
|
|
mod foo {
|
2018-09-28 04:32:04 -05:00
|
|
|
pub type Bar = u32;
|
2018-09-20 10:15:52 -05:00
|
|
|
}
|
|
|
|
|
2018-11-11 08:35:23 -06:00
|
|
|
mod bazz {
|
2018-11-17 11:34:25 -06:00
|
|
|
use foo::Bar; //~ ERROR unresolved import `foo`
|
2018-09-20 10:15:52 -05:00
|
|
|
|
|
|
|
fn baz() {
|
|
|
|
let x: Bar = 22;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
use foo::Bar;
|
|
|
|
|
2018-11-17 11:34:25 -06:00
|
|
|
use foobar::Baz; //~ ERROR unresolved import `foobar`
|
2018-09-20 10:15:52 -05:00
|
|
|
|
|
|
|
fn main() { }
|