1 error[E0428]: the name `my_macro` is defined multiple times
2 --> $DIR/macro-namespace-reserved.rs:25:1
4 LL | pub fn my_macro(input: TokenStream) -> TokenStream {
5 | -------------------------------------------------- previous definition of the macro `my_macro` here
7 LL | macro my_macro() {}
8 | ^^^^^^^^^^^^^^^^ `my_macro` redefined here
10 = note: `my_macro` must be defined only once in the macro namespace of this module
12 error[E0428]: the name `my_macro_attr` is defined multiple times
13 --> $DIR/macro-namespace-reserved.rs:26:1
15 LL | pub fn my_macro_attr(input: TokenStream, _: TokenStream) -> TokenStream {
16 | ----------------------------------------------------------------------- previous definition of the macro `my_macro_attr` here
18 LL | macro my_macro_attr() {}
19 | ^^^^^^^^^^^^^^^^^^^^^ `my_macro_attr` redefined here
21 = note: `my_macro_attr` must be defined only once in the macro namespace of this module
23 error[E0428]: the name `MyTrait` is defined multiple times
24 --> $DIR/macro-namespace-reserved.rs:27:1
26 LL | #[proc_macro_derive(MyTrait)]
27 | ------- previous definition of the macro `MyTrait` here
29 LL | macro MyTrait() {}
30 | ^^^^^^^^^^^^^^^ `MyTrait` redefined here
32 = note: `MyTrait` must be defined only once in the macro namespace of this module
34 error[E0428]: the name `SameName` is defined multiple times
35 --> $DIR/macro-namespace-reserved.rs:35:1
37 LL | #[proc_macro_derive(SameName)]
38 | -------- previous definition of the macro `SameName` here
40 LL | pub fn SameName(input: TokenStream) -> TokenStream {
41 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `SameName` redefined here
43 = note: `SameName` must be defined only once in the macro namespace of this module
45 error: aborting due to 4 previous errors
47 For more information about this error, try `rustc --explain E0428`.