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
208 B
Rust
Raw Normal View History

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