rust/tests/ui/imports/extern-crate-self/extern-crate-self-pass.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
159 B
Rust
Raw Normal View History

// build-pass (FIXME(62277): could be check-pass?)
extern crate self as foo;
struct S;
mod m {
fn check() {
foo::S; // OK
}
}
fn main() {}