2024-02-16 20:02:50 +00:00
|
|
|
//@ run-pass
|
2018-09-25 23:51:35 +02:00
|
|
|
#![allow(unused_variables)]
|
2024-02-16 20:02:50 +00:00
|
|
|
//@ compile-flags: --extern LooksLikeExternCrate=/path/to/nowhere
|
2018-04-08 15:34:35 +03:00
|
|
|
|
|
|
|
|
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 {};
|
|
|
|
|
}
|