]> git.lizzy.rs Git - rust.git/blob - tests/ui/imports/local-modularized-tricky-fail-2.stderr
Rollup merge of #106958 - jyn514:labels, r=m-ou-se
[rust.git] / tests / ui / imports / local-modularized-tricky-fail-2.stderr
1 error: macro-expanded `macro_export` macros from the current crate cannot be referred to by absolute paths
2   --> $DIR/local-modularized-tricky-fail-2.rs:13:9
3    |
4 LL |     use exported;
5    |         ^^^^^^^^
6    |
7    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
8    = note: for more information, see issue #52234 <https://github.com/rust-lang/rust/issues/52234>
9 note: the macro is defined here
10   --> $DIR/local-modularized-tricky-fail-2.rs:5:5
11    |
12 LL | /     macro_rules! exported {
13 LL | |         () => ()
14 LL | |     }
15    | |_____^
16 ...
17 LL |   define_exported!();
18    |   ------------------ in this macro invocation
19    = note: `#[deny(macro_expanded_macro_exports_accessed_by_absolute_paths)]` on by default
20    = note: this error originates in the macro `define_exported` (in Nightly builds, run with -Z macro-backtrace for more info)
21
22 error: macro-expanded `macro_export` macros from the current crate cannot be referred to by absolute paths
23   --> $DIR/local-modularized-tricky-fail-2.rs:19:5
24    |
25 LL |     ::exported!();
26    |     ^^^^^^^^^^
27    |
28    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
29    = note: for more information, see issue #52234 <https://github.com/rust-lang/rust/issues/52234>
30 note: the macro is defined here
31   --> $DIR/local-modularized-tricky-fail-2.rs:5:5
32    |
33 LL | /     macro_rules! exported {
34 LL | |         () => ()
35 LL | |     }
36    | |_____^
37 ...
38 LL |   define_exported!();
39    |   ------------------ in this macro invocation
40    = note: this error originates in the macro `define_exported` (in Nightly builds, run with -Z macro-backtrace for more info)
41
42 error: aborting due to 2 previous errors
43