rust/src/test/ui/imports/extern-prelude-extern-crate-restricted-shadowing.rs

18 lines
223 B
Rust
Raw Normal View History

// aux-build:two_macros.rs
macro_rules! define_vec {
() => {
extern crate std as Vec;
}
}
define_vec!();
mod m {
fn check() {
Vec::panic!(); //~ ERROR `Vec` is ambiguous
}
}
fn main() {}