1 // aux-build:two_macros.rs
4 extern crate two_macros;
5 pub use self::two_macros::m as panic;
15 fn f() { panic!(); } //~ ERROR ambiguous
19 ::two_macros::m!(use foo::panic;);
20 fn f() { panic!(); } //~ ERROR ambiguous
24 macro_rules! panic { () => {} } // ok
29 macro_rules! m { () => {
30 macro_rules! panic { () => {} }
33 panic!(); //~ ERROR `panic` is ambiguous
37 extern crate two_macros;
39 pub use two_macros::m as n;
49 n!(); //~ ERROR ambiguous