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