18 lines
223 B
Rust
18 lines
223 B
Rust
|
// 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() {}
|