rust/src/test/ui/imports/extern-crate-self/extern-crate-self-pass.rs

14 lines
124 B
Rust
Raw Normal View History

// compile-pass
extern crate self as foo;
struct S;
mod m {
fn check() {
foo::S; // OK
}
}
fn main() {}