1 error[E0428]: the name `mac` is defined multiple times
2 --> $DIR/pub-macro-rules-fail.rs:8:5
4 LL | pub macro_rules! mac { () => {} }
5 | -------------------- previous definition of the macro `mac` here
7 LL | pub macro_rules! mac { () => {} }
8 | ^^^^^^^^^^^^^^^^^^^^ `mac` redefined here
10 = note: `mac` must be defined only once in the macro namespace of this module
12 error[E0433]: failed to resolve: maybe a missing crate `mac`?
13 --> $DIR/pub-macro-rules-fail.rs:22:12
16 | ^^^ maybe a missing crate `mac`?
18 error[E0433]: failed to resolve: maybe a missing crate `block_mac`?
19 --> $DIR/pub-macro-rules-fail.rs:23:12
21 LL | crate::block_mac!();
22 | ^^^^^^^^^ maybe a missing crate `block_mac`?
24 error: cannot find macro `mac` in this scope
25 --> $DIR/pub-macro-rules-fail.rs:19:5
30 = note: consider importing this macro:
33 error[E0603]: macro `private_mac` is private
34 --> $DIR/pub-macro-rules-fail.rs:25:15
36 LL | crate::m::private_mac!();
37 | ^^^^^^^^^^^ private macro
39 note: the macro `private_mac` is defined here
40 --> $DIR/pub-macro-rules-fail.rs:10:5
42 LL | pub(self) macro_rules! private_mac { () => {} }
43 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
45 error: aborting due to 5 previous errors
47 Some errors have detailed explanations: E0428, E0433, E0603.
48 For more information about an error, try `rustc --explain E0428`.