summaryrefslogtreecommitdiffstats
path: root/tests/ui/resolve/extern-prelude-fail.rs
blob: 7d387025ad44d0a183261a0e59492190f7d3d290 (plain)
1
2
3
4
5
6
7
8
9
// 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
}