2018-08-30 14:18:55 +02:00
|
|
|
// run-pass
|
2018-09-25 23:51:35 +02:00
|
|
|
#![allow(unused_variables)]
|
2020-07-05 10:39:15 +03: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 {};
|
|
|
|
}
|