2018-08-30 07:18:55 -05:00
|
|
|
// run-pass
|
2018-09-25 16:51:35 -05:00
|
|
|
#![allow(unused_variables)]
|
2020-07-05 02:39:15 -05:00
|
|
|
// compile-flags: --extern LooksLikeExternCrate=/path/to/nowhere
|
2018-04-08 07:34:35 -05: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 {};
|
|
|
|
}
|