rustc/tests/ui/extern/extern-prelude-no-speculative.rs
2023-08-02 10:33:26 +02:00

14 lines
344 B
Rust

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