]> git.lizzy.rs Git - rust.git/blob - src/test/ui/imports/local-modularized-tricky-fail-2.rs
Sync portable-simd to rust-lang/portable-simd@72df4c45056a8bc0d1b3f06fdc828722177f0763
[rust.git] / src / test / 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 }