rust/tests/ui/macros/out-of-order-shadowing.rs
2023-01-11 09:32:08 +00:00

11 lines
207 B
Rust

// aux-build:define-macro.rs
macro_rules! bar { () => {} }
define_macro!(bar);
bar!(); //~ ERROR `bar` is ambiguous
macro_rules! m { () => { #[macro_use] extern crate define_macro; } }
m!();
fn main() {}