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
|
2019-07-03 04:47:24 -05:00
|
|
|
--> $DIR/macro-namespace-reserved-2.rs:29:5
|
|
|
|
|
|
|
|
|
LL | crate::my_macro_attr!();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: expected macro, found attribute macro `crate::my_macro_attr`
|
|
|
|
--> $DIR/macro-namespace-reserved-2.rs:29:5
|
|
|
|
|
|
|
|
|
LL | crate::my_macro_attr!();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^ not a macro
|
|
|
|
|
|
|
|
error: can't use a procedural macro from the same crate that defines it
|
|
|
|
--> $DIR/macro-namespace-reserved-2.rs:34:5
|
|
|
|
|
|
|
|
|
LL | crate::MyTrait!();
|
|
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: expected macro, found derive macro `crate::MyTrait`
|
|
|
|
--> $DIR/macro-namespace-reserved-2.rs:34:5
|
|
|
|
|
|
|
|
|
LL | crate::MyTrait!();
|
|
|
|
| ^^^^^^^^^^^^^^ not a macro
|
|
|
|
|
|
|
|
error: can't use a procedural macro from the same crate that defines it
|
|
|
|
--> $DIR/macro-namespace-reserved-2.rs:42: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
|
2019-07-03 04:47:24 -05:00
|
|
|
--> $DIR/macro-namespace-reserved-2.rs:44: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-03 04:47:24 -05:00
|
|
|
error: expected attribute, found derive macro `MyTrait`
|
|
|
|
--> $DIR/macro-namespace-reserved-2.rs:44:3
|
2018-07-12 05:24:59 -05:00
|
|
|
|
|
2019-07-02 17:44:04 -05:00
|
|
|
LL | #[MyTrait]
|
2019-07-03 04:47:24 -05:00
|
|
|
| ^^^^^^^ not an attribute
|
2018-07-12 05:24:59 -05:00
|
|
|
|
2019-07-03 04:47:24 -05:00
|
|
|
error: can't use a procedural macro from the same crate that defines it
|
2020-01-08 11:02:10 -06:00
|
|
|
--> $DIR/macro-namespace-reserved-2.rs:53:10
|
2019-07-02 17:44:04 -05:00
|
|
|
|
|
|
|
|
LL | #[derive(my_macro_attr)]
|
|
|
|
| ^^^^^^^^^^^^^
|
|
|
|
|
2019-07-03 04:47:24 -05:00
|
|
|
error: expected derive macro, found attribute macro `my_macro_attr`
|
2020-01-08 11:02:10 -06:00
|
|
|
--> $DIR/macro-namespace-reserved-2.rs:53:10
|
2018-07-12 05:24:59 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | #[derive(my_macro_attr)]
|
2019-07-03 04:47:24 -05:00
|
|
|
| ^^^^^^^^^^^^^ not a derive macro
|
2018-07-12 05:24:59 -05:00
|
|
|
|
|
|
|
error: can't use a procedural macro from the same crate that defines it
|
2020-01-08 11:02:10 -06:00
|
|
|
--> $DIR/macro-namespace-reserved-2.rs:56: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-03 04:47:24 -05:00
|
|
|
error: can't use a procedural macro from the same crate that defines it
|
|
|
|
--> $DIR/macro-namespace-reserved-2.rs:39:3
|
|
|
|
|
|
|
|
|
LL | #[crate::my_macro]
|
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: expected attribute, found macro `crate::my_macro`
|
|
|
|
--> $DIR/macro-namespace-reserved-2.rs:39:3
|
|
|
|
|
|
|
|
|
LL | #[crate::my_macro]
|
|
|
|
| ^^^^^^^^^^^^^^^ not an attribute
|
|
|
|
|
2019-08-02 20:22:44 -05:00
|
|
|
error: can't use a procedural macro from the same crate that defines it
|
2020-01-08 11:02:10 -06:00
|
|
|
--> $DIR/macro-namespace-reserved-2.rs:50:10
|
2019-08-02 20:22:44 -05:00
|
|
|
|
|
|
|
|
LL | #[derive(crate::my_macro)]
|
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: expected derive macro, found macro `crate::my_macro`
|
2020-01-08 11:02:10 -06:00
|
|
|
--> $DIR/macro-namespace-reserved-2.rs:50:10
|
2019-08-02 20:22:44 -05:00
|
|
|
|
|
|
|
|
LL | #[derive(crate::my_macro)]
|
|
|
|
| ^^^^^^^^^^^^^^^ not a derive macro
|
|
|
|
|
2019-09-15 05:12:14 -05:00
|
|
|
error: cannot find macro `my_macro_attr` in this scope
|
2019-07-02 17:44:04 -05:00
|
|
|
--> $DIR/macro-namespace-reserved-2.rs:28:5
|
|
|
|
|
|
|
|
|
LL | my_macro_attr!();
|
|
|
|
| ^^^^^^^^^^^^^
|
2021-08-22 08:05:35 -05:00
|
|
|
|
|
2021-08-22 10:26:19 -05:00
|
|
|
= note: `my_macro_attr` is in scope, but it is an attribute: `#[my_macro_attr]`
|
2019-07-02 17:44:04 -05:00
|
|
|
|
2019-09-15 05:12:14 -05:00
|
|
|
error: cannot find macro `MyTrait` in this scope
|
2019-07-03 04:47:24 -05:00
|
|
|
--> $DIR/macro-namespace-reserved-2.rs:33:5
|
2019-07-02 17:44:04 -05:00
|
|
|
|
|
|
|
|
LL | MyTrait!();
|
|
|
|
| ^^^^^^^
|
2021-08-22 08:05:35 -05:00
|
|
|
|
|
2021-08-22 10:26:19 -05:00
|
|
|
= note: `MyTrait` is in scope, but it is a derive macro: `#[derive(MyTrait)]`
|
2019-07-02 17:44:04 -05:00
|
|
|
|
2019-09-15 04:55:18 -05:00
|
|
|
error: cannot find attribute `my_macro` in this scope
|
2019-08-12 13:52:37 -05:00
|
|
|
--> $DIR/macro-namespace-reserved-2.rs:38:3
|
|
|
|
|
|
|
|
|
LL | #[my_macro]
|
|
|
|
| ^^^^^^^^
|
2021-08-22 08:05:35 -05:00
|
|
|
|
|
|
|
|
= note: `my_macro` is in scope, but it is a function-like macro
|
2019-08-12 13:52:37 -05:00
|
|
|
|
|
|
|
error: cannot find derive macro `my_macro` in this scope
|
|
|
|
--> $DIR/macro-namespace-reserved-2.rs:48:10
|
|
|
|
|
|
|
|
|
LL | #[derive(my_macro)]
|
|
|
|
| ^^^^^^^^
|
2021-08-22 08:05:35 -05:00
|
|
|
|
|
|
|
|
= note: `my_macro` is in scope, but it is a function-like macro
|
2019-08-12 13:52:37 -05:00
|
|
|
|
2020-01-08 11:02:10 -06:00
|
|
|
error: cannot find derive macro `my_macro` in this scope
|
|
|
|
--> $DIR/macro-namespace-reserved-2.rs:48:10
|
|
|
|
|
|
|
|
|
LL | #[derive(my_macro)]
|
|
|
|
| ^^^^^^^^
|
2021-08-22 08:05:35 -05:00
|
|
|
|
|
|
|
|
= note: `my_macro` is in scope, but it is a function-like macro
|
2020-01-08 11:02:10 -06:00
|
|
|
|
|
|
|
error: aborting due to 20 previous errors
|
2018-07-12 05:24:59 -05:00
|
|
|
|