2019-10-11 19:00:09 +00:00
|
|
|
error: malformed `proc_macro_derive` attribute input
|
|
|
|
--> $DIR/attribute.rs:9:1
|
|
|
|
|
|
|
|
|
LL | #[proc_macro_derive]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^ help: must be of the form: `#[proc_macro_derive(TraitName, /*opt*/ attributes(name1, name2, ...))]`
|
|
|
|
|
|
|
|
error: malformed `proc_macro_derive` attribute input
|
|
|
|
--> $DIR/attribute.rs:12:1
|
|
|
|
|
|
|
|
|
LL | #[proc_macro_derive = ""]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^ help: must be of the form: `#[proc_macro_derive(TraitName, /*opt*/ attributes(name1, name2, ...))]`
|
|
|
|
|
2019-02-28 05:51:35 +00:00
|
|
|
error: attribute must have either one or two arguments
|
2019-05-22 00:47:23 +00:00
|
|
|
--> $DIR/attribute.rs:15:1
|
2018-12-02 19:27:37 +00:00
|
|
|
|
|
2019-02-28 05:51:35 +00:00
|
|
|
LL | #[proc_macro_derive(d3, a, b)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2018-12-02 19:27:37 +00:00
|
|
|
|
|
|
|
error: attribute must have either one or two arguments
|
2019-05-22 00:47:23 +00:00
|
|
|
--> $DIR/attribute.rs:19:1
|
2019-02-28 05:51:35 +00:00
|
|
|
|
|
|
|
|
LL | #[proc_macro_derive(d4, attributes(a), b)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: not a meta item
|
2019-05-22 00:47:23 +00:00
|
|
|
--> $DIR/attribute.rs:23:21
|
2018-12-02 19:27:37 +00:00
|
|
|
|
|
2019-02-28 05:51:35 +00:00
|
|
|
LL | #[proc_macro_derive("a")]
|
|
|
|
| ^^^
|
2018-12-02 19:27:37 +00:00
|
|
|
|
|
|
|
error: must only be one word
|
2019-05-22 00:47:23 +00:00
|
|
|
--> $DIR/attribute.rs:27:21
|
2018-12-02 19:27:37 +00:00
|
|
|
|
|
2019-02-28 05:51:35 +00:00
|
|
|
LL | #[proc_macro_derive(d6 = "")]
|
|
|
|
| ^^^^^^^
|
2018-12-02 19:27:37 +00:00
|
|
|
|
2019-02-28 06:17:24 +00:00
|
|
|
error: must only be one word
|
2019-05-22 00:47:23 +00:00
|
|
|
--> $DIR/attribute.rs:31:21
|
2019-02-28 06:17:24 +00:00
|
|
|
|
|
|
|
|
LL | #[proc_macro_derive(m::d7)]
|
|
|
|
| ^^^^^
|
|
|
|
|
2018-12-02 19:27:37 +00:00
|
|
|
error: must only be one word
|
2019-05-22 00:47:23 +00:00
|
|
|
--> $DIR/attribute.rs:35:21
|
2019-02-28 05:51:35 +00:00
|
|
|
|
|
|
|
|
LL | #[proc_macro_derive(d8(a))]
|
|
|
|
| ^^^^^
|
|
|
|
|
2019-03-03 16:04:58 +00:00
|
|
|
error: `self` cannot be a name of derive macro
|
2019-05-22 00:47:23 +00:00
|
|
|
--> $DIR/attribute.rs:39:21
|
2019-03-03 16:04:58 +00:00
|
|
|
|
|
|
|
|
LL | #[proc_macro_derive(self)]
|
|
|
|
| ^^^^
|
|
|
|
|
2019-02-28 05:51:35 +00:00
|
|
|
error: second argument must be `attributes`
|
2019-06-20 08:52:31 +00:00
|
|
|
--> $DIR/attribute.rs:46:26
|
2018-12-02 19:27:37 +00:00
|
|
|
|
|
2019-02-28 05:51:35 +00:00
|
|
|
LL | #[proc_macro_derive(d11, a)]
|
|
|
|
| ^
|
|
|
|
|
|
|
|
error: attribute must be of form: `attributes(foo, bar)`
|
2019-06-20 08:52:31 +00:00
|
|
|
--> $DIR/attribute.rs:46:26
|
2019-02-28 05:51:35 +00:00
|
|
|
|
|
|
|
|
LL | #[proc_macro_derive(d11, a)]
|
|
|
|
| ^
|
|
|
|
|
|
|
|
error: attribute must be of form: `attributes(foo, bar)`
|
2019-06-20 08:52:31 +00:00
|
|
|
--> $DIR/attribute.rs:51:26
|
2019-02-28 05:51:35 +00:00
|
|
|
|
|
|
|
|
LL | #[proc_macro_derive(d12, attributes)]
|
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
2022-11-15 13:24:33 +00:00
|
|
|
error: attribute must be a meta item, not a literal
|
2019-06-20 08:52:31 +00:00
|
|
|
--> $DIR/attribute.rs:55:37
|
2019-02-28 05:51:35 +00:00
|
|
|
|
|
|
|
|
LL | #[proc_macro_derive(d13, attributes("a"))]
|
|
|
|
| ^^^
|
2018-12-02 19:27:37 +00:00
|
|
|
|
2022-11-15 13:24:33 +00:00
|
|
|
error: attribute must only be a single word
|
2019-06-20 08:52:31 +00:00
|
|
|
--> $DIR/attribute.rs:59:37
|
2018-12-02 19:27:37 +00:00
|
|
|
|
|
2019-02-28 05:51:35 +00:00
|
|
|
LL | #[proc_macro_derive(d14, attributes(a = ""))]
|
|
|
|
| ^^^^^^
|
2018-12-02 19:27:37 +00:00
|
|
|
|
2022-11-15 13:24:33 +00:00
|
|
|
error: attribute must only be a single word
|
2019-06-20 08:52:31 +00:00
|
|
|
--> $DIR/attribute.rs:63:37
|
2019-02-28 06:17:24 +00:00
|
|
|
|
|
|
|
|
LL | #[proc_macro_derive(d15, attributes(m::a))]
|
|
|
|
| ^^^^
|
|
|
|
|
2022-11-15 13:24:33 +00:00
|
|
|
error: attribute must only be a single word
|
2019-06-20 08:52:31 +00:00
|
|
|
--> $DIR/attribute.rs:67:37
|
2018-12-02 19:27:37 +00:00
|
|
|
|
|
2019-02-28 05:51:35 +00:00
|
|
|
LL | #[proc_macro_derive(d16, attributes(a(b)))]
|
|
|
|
| ^^^^
|
2018-12-02 19:27:37 +00:00
|
|
|
|
2019-03-03 16:04:58 +00:00
|
|
|
error: `self` cannot be a name of derive helper attribute
|
2019-06-20 08:52:31 +00:00
|
|
|
--> $DIR/attribute.rs:71:37
|
2019-03-03 16:04:58 +00:00
|
|
|
|
|
|
|
|
LL | #[proc_macro_derive(d17, attributes(self))]
|
|
|
|
| ^^^^
|
|
|
|
|
2019-06-20 08:52:31 +00:00
|
|
|
error: aborting due to 17 previous errors
|
2018-12-02 19:27:37 +00:00
|
|
|
|