summaryrefslogtreecommitdiffstats
path: root/tests/ui/macros/out-of-order-shadowing.rs
blob: a0d1a973764ada09c7dfb4e16de005001d4e1730 (plain)
1
2
3
4
5
6
7
8
9
10
// 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() {}