]> git.lizzy.rs Git - rust.git/blob - tests/ui/imports/local-modularized-tricky-fail-2.rs
Rollup merge of #105526 - Xiretza:iter-from-generator-derive, r=scottmcm
[rust.git] / tests / ui / imports / local-modularized-tricky-fail-2.rs
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
18 fn main() {
19     ::exported!();
20     //~^ ERROR macro-expanded `macro_export` macros from the current crate cannot
21     //~| WARN this was previously accepted
22 }