rust/tests/ui/resolve/extern-prelude-fail.rs

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

10 lines
283 B
Rust
Raw Normal View History

//@ compile-flags:--extern extern_prelude
//@ aux-build:extern-prelude.rs
// Extern prelude names are not available by absolute paths
fn main() {
use extern_prelude::S; //~ ERROR unresolved import `extern_prelude`
let s = ::extern_prelude::S; //~ ERROR failed to resolve
}