Files
rust/tests/ui/resolve/extern-prelude-speculative.rs

11 lines
243 B
Rust
Raw Normal View History

// Non-existent path in `--extern` doesn't result in an error if it's shadowed by `extern crate`.
//@ check-pass
//@ compile-flags: --extern something=/path/to/nowhere
extern crate std as something;
fn main() {
something::println!();
}