mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 23:34:48 +00:00
14 lines
346 B
Rust
14 lines
346 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 {};
|
|
}
|