rust/tests/ui/imports/issue-114682-1.rs
2024-01-24 00:01:59 +08:00

26 lines
350 B
Rust

// https://github.com/rust-lang/rust/pull/114682#discussion_r1420534109
#![feature(decl_macro)]
macro_rules! mac {
() => {
pub macro A() {
println!("non import")
}
}
}
mod m {
pub macro A() {
println!("import")
}
}
pub use m::*;
mac!();
fn main() {
A!();
//~^ ERROR `A` is ambiguous
}