summary refs log tree commit diff
path: root/tests/ui/extern/extern-prelude-no-speculative.rs
blob: 949f4c8f2bf29a5bf6fb4fd4ca82403c55440f0f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
//@ run-pass
#![allow(unused_variables)]
//@ compile-flags: --extern LooksLikeExternCrate=/path/to/nowhere

mod m {
    pub struct LooksLikeExternCrate;
}

fn main() {
    // OK, speculative resolution for `unused_qualifications` doesn't try
    // to resolve this as an extern crate and load that crate
    let s = m::LooksLikeExternCrate {};
}