1 // Crate-local macro expanded `macro_export` macros cannot be accessed with module-relative paths. 2 3 macro_rules! define_exported { () => { 4 #[macro_export] 5 macro_rules! exported { 6 () => () 7 } 8 }} 9 10 define_exported!(); 11 12 mod m { 13 use exported; 14 //~^ ERROR macro-expanded `macro_export` macros from the current crate cannot 15 //~| WARN this was previously accepted 16 } 17 main()18fn main() { 19 ::exported!(); 20 //~^ ERROR macro-expanded `macro_export` macros from the current crate cannot 21 //~| WARN this was previously accepted 22 } 23