]> git.lizzy.rs Git - rust.git/blob - tests/ui/extern/extern-prelude-no-speculative.rs
Rollup merge of #106670 - albertlarsan68:check-docs-in-pr-ci, r=Mark-Simulacrum
[rust.git] / tests / ui / extern / extern-prelude-no-speculative.rs
1 // run-pass
2 #![allow(unused_variables)]
3 // compile-flags: --extern LooksLikeExternCrate=/path/to/nowhere
4
5 mod m {
6     pub struct LooksLikeExternCrate;
7 }
8
9 fn main() {
10     // OK, speculative resolution for `unused_qualifications` doesn't try
11     // to resolve this as an extern crate and load that crate
12     let s = m::LooksLikeExternCrate {};
13 }