rust/tests/ui/macros/out-of-order-shadowing.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
207 B
Rust
Raw Normal View History

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