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