2018-07-12 05:24:59 -05:00
|
|
|
error: can't use a procedural macro from the same crate that defines it
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/macro-namespace-reserved-2.rs:25:5
|
2018-07-12 05:24:59 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | my_macro!();
|
2018-08-14 19:51:12 -05:00
|
|
|
| ^^^^^^^^
|
2018-07-12 05:24:59 -05:00
|
|
|
|
|
|
|
error: can't use a procedural macro from the same crate that defines it
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/macro-namespace-reserved-2.rs:36:3
|
2018-07-12 05:24:59 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | #[my_macro_attr]
|
2018-08-14 19:51:12 -05:00
|
|
|
| ^^^^^^^^^^^^^
|
2018-07-12 05:24:59 -05:00
|
|
|
|
|
|
|
error: can't use a procedural macro from the same crate that defines it
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/macro-namespace-reserved-2.rs:38:3
|
2018-07-12 05:24:59 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | #[MyTrait]
|
2018-08-14 19:51:12 -05:00
|
|
|
| ^^^^^^^
|
2018-07-12 05:24:59 -05:00
|
|
|
|
2019-07-02 17:44:04 -05:00
|
|
|
error: `MyTrait` is a derive macro
|
|
|
|
--> $DIR/macro-namespace-reserved-2.rs:38:1
|
2018-07-12 05:24:59 -05:00
|
|
|
|
|
2019-07-02 17:44:04 -05:00
|
|
|
LL | #[MyTrait]
|
|
|
|
| ^^^^^^^^^^
|
2018-07-12 05:24:59 -05:00
|
|
|
|
|
|
|
error: can't use a procedural macro from the same crate that defines it
|
2019-07-02 17:44:04 -05:00
|
|
|
--> $DIR/macro-namespace-reserved-2.rs:44:10
|
|
|
|
|
|
|
|
|
LL | #[derive(my_macro_attr)]
|
|
|
|
| ^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: macro `my_macro_attr` may not be used for derive attributes
|
|
|
|
--> $DIR/macro-namespace-reserved-2.rs:44:10
|
2018-07-12 05:24:59 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | #[derive(my_macro_attr)]
|
2018-07-12 05:24:59 -05:00
|
|
|
| ^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: can't use a procedural macro from the same crate that defines it
|
2019-07-02 17:44:04 -05:00
|
|
|
--> $DIR/macro-namespace-reserved-2.rs:47:10
|
2018-07-12 05:24:59 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | #[derive(MyTrait)]
|
2018-07-12 05:24:59 -05:00
|
|
|
| ^^^^^^^
|
|
|
|
|
2019-07-02 17:44:04 -05:00
|
|
|
error[E0658]: The attribute `my_macro` is currently unknown to the compiler and may have meaning added to it in the future
|
|
|
|
--> $DIR/macro-namespace-reserved-2.rs:34:3
|
|
|
|
|
|
|
|
|
LL | #[my_macro]
|
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: for more information, see https://github.com/rust-lang/rust/issues/29642
|
|
|
|
= help: add #![feature(custom_attribute)] to the crate attributes to enable
|
|
|
|
|
|
|
|
error: cannot find derive macro `my_macro` in this scope
|
|
|
|
--> $DIR/macro-namespace-reserved-2.rs:42:10
|
|
|
|
|
|
|
|
|
LL | #[derive(my_macro)]
|
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
|
|
error: cannot find macro `my_macro_attr!` in this scope
|
|
|
|
--> $DIR/macro-namespace-reserved-2.rs:28:5
|
|
|
|
|
|
|
|
|
LL | my_macro_attr!();
|
|
|
|
| ^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: cannot find macro `MyTrait!` in this scope
|
|
|
|
--> $DIR/macro-namespace-reserved-2.rs:31:5
|
|
|
|
|
|
|
|
|
LL | MyTrait!();
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
error: aborting due to 11 previous errors
|
2018-07-12 05:24:59 -05:00
|
|
|
|
2019-07-02 17:44:04 -05:00
|
|
|
For more information about this error, try `rustc --explain E0658`.
|