about summary refs log tree commit diff
path: root/src/test/run-pass/extern/extern-prelude-no-speculative.rs
blob: cc00737ab591d58231daafe8bc43e5ac45fed0ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// run-pass
#![allow(unused_variables)]
// compile-flags: --extern LooksLikeExternCrate

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 {};
}