]> git.lizzy.rs Git - rust.git/blob - src/test/ui/macros/out-of-order-shadowing.rs
Rollup merge of #95376 - WaffleLapkin:drain_keep_rest, r=dtolnay
[rust.git] / src / test / ui / macros / out-of-order-shadowing.rs
1 // aux-build:define-macro.rs
2
3 macro_rules! bar { () => {} }
4 define_macro!(bar);
5 bar!(); //~ ERROR `bar` is ambiguous
6
7 macro_rules! m { () => { #[macro_use] extern crate define_macro; } }
8 m!();
9
10 fn main() {}