mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
21 lines
304 B
Rust
21 lines
304 B
Rust
//@ aux-build:baz.rs
|
|
//@ compile-flags:--extern baz
|
|
//@ edition:2018
|
|
|
|
mod foo {
|
|
pub type Bar = u32;
|
|
}
|
|
|
|
mod bazz {
|
|
use foo::Bar; //~ ERROR unresolved import `foo`
|
|
|
|
fn baz() {
|
|
let x: Bar = 22;
|
|
}
|
|
}
|
|
|
|
use foo::Bar;
|
|
|
|
use foobar::Baz; //~ ERROR unresolved import `foobar`
|
|
|
|
fn main() { }
|