2025-07-07 20:48:51 +02:00
|
|
|
error[E0539]: malformed `proc_macro_derive` attribute input
|
2019-10-11 21:00:09 +02:00
|
|
|
--> $DIR/attribute.rs:9:1
|
|
|
|
|
|
|
|
|
|
|
LL | #[proc_macro_derive]
|
2025-08-11 01:46:34 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^ expected this to be a list
|
|
|
|
|
|
|
2025-08-11 17:02:32 +00:00
|
|
|
= note: for more information, visit <https://doc.rust-lang.org/reference/procedural-macros.html#derive-macros>
|
2025-08-11 01:46:34 +00:00
|
|
|
help: try changing it to one of the following valid forms of the attribute
|
|
|
|
|
|
|
|
|
|
|
LL | #[proc_macro_derive(TraitName)]
|
|
|
|
|
| +++++++++++
|
|
|
|
|
LL | #[proc_macro_derive(TraitName, attributes(name1, name2, ...))]
|
|
|
|
|
| ++++++++++++++++++++++++++++++++++++++++++
|
2019-10-11 21:00:09 +02:00
|
|
|
|
2025-07-07 20:48:51 +02:00
|
|
|
error[E0539]: malformed `proc_macro_derive` attribute input
|
2025-08-11 17:02:32 +00:00
|
|
|
--> $DIR/attribute.rs:15:1
|
2019-10-11 21:00:09 +02:00
|
|
|
|
|
|
|
|
|
LL | #[proc_macro_derive = ""]
|
2025-08-11 01:46:34 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^ expected this to be a list
|
|
|
|
|
|
|
2025-08-11 17:02:32 +00:00
|
|
|
= note: for more information, visit <https://doc.rust-lang.org/reference/procedural-macros.html#derive-macros>
|
2025-08-11 01:46:34 +00:00
|
|
|
help: try changing it to one of the following valid forms of the attribute
|
|
|
|
|
|
|
|
|
|
|
LL - #[proc_macro_derive = ""]
|
|
|
|
|
LL + #[proc_macro_derive(TraitName)]
|
|
|
|
|
|
|
|
|
|
|
LL - #[proc_macro_derive = ""]
|
|
|
|
|
LL + #[proc_macro_derive(TraitName, attributes(name1, name2, ...))]
|
|
|
|
|
|
|
2019-10-11 21:00:09 +02:00
|
|
|
|
2025-07-07 20:48:51 +02:00
|
|
|
error[E0539]: malformed `proc_macro_derive` attribute input
|
2025-08-11 17:02:32 +00:00
|
|
|
--> $DIR/attribute.rs:21:1
|
2018-12-02 22:27:37 +03:00
|
|
|
|
|
2019-02-28 08:51:35 +03:00
|
|
|
LL | #[proc_macro_derive(d3, a, b)]
|
2025-07-07 20:48:51 +02:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^-^^^^^
|
2025-08-11 01:46:34 +00:00
|
|
|
| |
|
|
|
|
|
| the only valid argument here is `attributes`
|
|
|
|
|
|
|
2025-08-11 17:02:32 +00:00
|
|
|
= note: for more information, visit <https://doc.rust-lang.org/reference/procedural-macros.html#derive-macros>
|
2025-08-11 01:46:34 +00:00
|
|
|
help: try changing it to one of the following valid forms of the attribute
|
|
|
|
|
|
|
|
|
|
|
LL - #[proc_macro_derive(d3, a, b)]
|
|
|
|
|
LL + #[proc_macro_derive(TraitName)]
|
|
|
|
|
|
|
|
|
|
|
LL - #[proc_macro_derive(d3, a, b)]
|
|
|
|
|
LL + #[proc_macro_derive(TraitName, attributes(name1, name2, ...))]
|
|
|
|
|
|
|
2018-12-02 22:27:37 +03:00
|
|
|
|
2025-07-07 20:48:51 +02:00
|
|
|
error[E0565]: malformed `proc_macro_derive` attribute input
|
2025-08-11 17:02:32 +00:00
|
|
|
--> $DIR/attribute.rs:27:1
|
2019-02-28 08:51:35 +03:00
|
|
|
|
|
|
|
|
|
LL | #[proc_macro_derive(d4, attributes(a), b)]
|
2025-07-07 20:48:51 +02:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-^^
|
2025-08-11 01:46:34 +00:00
|
|
|
| |
|
|
|
|
|
| didn't expect any arguments here
|
|
|
|
|
|
|
2025-08-11 17:02:32 +00:00
|
|
|
= note: for more information, visit <https://doc.rust-lang.org/reference/procedural-macros.html#derive-macros>
|
2025-08-11 01:46:34 +00:00
|
|
|
help: try changing it to one of the following valid forms of the attribute
|
|
|
|
|
|
|
|
|
|
|
LL - #[proc_macro_derive(d4, attributes(a), b)]
|
|
|
|
|
LL + #[proc_macro_derive(TraitName)]
|
|
|
|
|
|
|
|
|
|
|
LL - #[proc_macro_derive(d4, attributes(a), b)]
|
|
|
|
|
LL + #[proc_macro_derive(TraitName, attributes(name1, name2, ...))]
|
|
|
|
|
|
|
2019-02-28 08:51:35 +03:00
|
|
|
|
2025-07-07 20:48:51 +02:00
|
|
|
error[E0565]: malformed `proc_macro_derive` attribute input
|
2025-08-11 17:02:32 +00:00
|
|
|
--> $DIR/attribute.rs:33:1
|
2018-12-02 22:27:37 +03:00
|
|
|
|
|
2019-02-28 08:51:35 +03:00
|
|
|
LL | #[proc_macro_derive("a")]
|
2025-07-07 20:48:51 +02:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^---^^
|
2025-08-11 01:46:34 +00:00
|
|
|
| |
|
|
|
|
|
| didn't expect a literal here
|
|
|
|
|
|
|
2025-08-11 17:02:32 +00:00
|
|
|
= note: for more information, visit <https://doc.rust-lang.org/reference/procedural-macros.html#derive-macros>
|
2025-08-11 01:46:34 +00:00
|
|
|
help: try changing it to one of the following valid forms of the attribute
|
|
|
|
|
|
|
|
|
|
|
LL - #[proc_macro_derive("a")]
|
|
|
|
|
LL + #[proc_macro_derive(TraitName)]
|
|
|
|
|
|
|
|
|
|
|
LL - #[proc_macro_derive("a")]
|
|
|
|
|
LL + #[proc_macro_derive(TraitName, attributes(name1, name2, ...))]
|
|
|
|
|
|
|
2018-12-02 22:27:37 +03:00
|
|
|
|
2025-07-07 20:48:51 +02:00
|
|
|
error[E0565]: malformed `proc_macro_derive` attribute input
|
2025-08-11 17:02:32 +00:00
|
|
|
--> $DIR/attribute.rs:39:1
|
2018-12-02 22:27:37 +03:00
|
|
|
|
|
2019-02-28 08:51:35 +03:00
|
|
|
LL | #[proc_macro_derive(d6 = "")]
|
2025-07-07 20:48:51 +02:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^----^^
|
2025-08-11 01:46:34 +00:00
|
|
|
| |
|
|
|
|
|
| didn't expect any arguments here
|
|
|
|
|
|
|
2025-08-11 17:02:32 +00:00
|
|
|
= note: for more information, visit <https://doc.rust-lang.org/reference/procedural-macros.html#derive-macros>
|
2025-08-11 01:46:34 +00:00
|
|
|
help: try changing it to one of the following valid forms of the attribute
|
|
|
|
|
|
|
|
|
|
|
LL - #[proc_macro_derive(d6 = "")]
|
|
|
|
|
LL + #[proc_macro_derive(TraitName)]
|
|
|
|
|
|
|
|
|
|
|
LL - #[proc_macro_derive(d6 = "")]
|
|
|
|
|
LL + #[proc_macro_derive(TraitName, attributes(name1, name2, ...))]
|
|
|
|
|
|
|
2018-12-02 22:27:37 +03:00
|
|
|
|
2025-07-07 20:48:51 +02:00
|
|
|
error[E0539]: malformed `proc_macro_derive` attribute input
|
2025-08-11 17:02:32 +00:00
|
|
|
--> $DIR/attribute.rs:45:1
|
2019-02-28 09:17:24 +03:00
|
|
|
|
|
|
|
|
|
LL | #[proc_macro_derive(m::d7)]
|
2025-07-07 20:48:51 +02:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^-----^^
|
2025-08-11 01:46:34 +00:00
|
|
|
| |
|
|
|
|
|
| expected a valid identifier here
|
|
|
|
|
|
|
2025-08-11 17:02:32 +00:00
|
|
|
= note: for more information, visit <https://doc.rust-lang.org/reference/procedural-macros.html#derive-macros>
|
2025-08-11 01:46:34 +00:00
|
|
|
help: try changing it to one of the following valid forms of the attribute
|
|
|
|
|
|
|
|
|
|
|
LL - #[proc_macro_derive(m::d7)]
|
|
|
|
|
LL + #[proc_macro_derive(TraitName)]
|
|
|
|
|
|
|
|
|
|
|
LL - #[proc_macro_derive(m::d7)]
|
|
|
|
|
LL + #[proc_macro_derive(TraitName, attributes(name1, name2, ...))]
|
|
|
|
|
|
|
2019-02-28 09:17:24 +03:00
|
|
|
|
2025-07-07 20:48:51 +02:00
|
|
|
error[E0565]: malformed `proc_macro_derive` attribute input
|
2025-08-11 17:02:32 +00:00
|
|
|
--> $DIR/attribute.rs:51:1
|
2019-02-28 08:51:35 +03:00
|
|
|
|
|
|
|
|
|
LL | #[proc_macro_derive(d8(a))]
|
2025-07-07 20:48:51 +02:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^---^^
|
2025-08-11 01:46:34 +00:00
|
|
|
| |
|
|
|
|
|
| didn't expect any arguments here
|
|
|
|
|
|
|
2025-08-11 17:02:32 +00:00
|
|
|
= note: for more information, visit <https://doc.rust-lang.org/reference/procedural-macros.html#derive-macros>
|
2025-08-11 01:46:34 +00:00
|
|
|
help: try changing it to one of the following valid forms of the attribute
|
|
|
|
|
|
|
|
|
|
|
LL - #[proc_macro_derive(d8(a))]
|
|
|
|
|
LL + #[proc_macro_derive(TraitName)]
|
|
|
|
|
|
|
|
|
|
|
LL - #[proc_macro_derive(d8(a))]
|
|
|
|
|
LL + #[proc_macro_derive(TraitName, attributes(name1, name2, ...))]
|
|
|
|
|
|
|
2019-02-28 08:51:35 +03:00
|
|
|
|
2025-07-07 20:48:51 +02:00
|
|
|
error[E0539]: malformed `proc_macro_derive` attribute input
|
2025-08-11 17:02:32 +00:00
|
|
|
--> $DIR/attribute.rs:57:1
|
2019-03-03 19:04:58 +03:00
|
|
|
|
|
|
|
|
|
LL | #[proc_macro_derive(self)]
|
2025-07-07 20:48:51 +02:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^----^^
|
2025-08-11 01:46:34 +00:00
|
|
|
| |
|
|
|
|
|
| expected a valid identifier here
|
|
|
|
|
|
|
2025-08-11 17:02:32 +00:00
|
|
|
= note: for more information, visit <https://doc.rust-lang.org/reference/procedural-macros.html#derive-macros>
|
2025-08-11 01:46:34 +00:00
|
|
|
help: try changing it to one of the following valid forms of the attribute
|
|
|
|
|
|
|
|
|
|
|
LL - #[proc_macro_derive(self)]
|
|
|
|
|
LL + #[proc_macro_derive(TraitName)]
|
|
|
|
|
|
|
|
|
|
|
LL - #[proc_macro_derive(self)]
|
|
|
|
|
LL + #[proc_macro_derive(TraitName, attributes(name1, name2, ...))]
|
|
|
|
|
|
|
2019-02-28 08:51:35 +03:00
|
|
|
|
2025-07-07 20:48:51 +02:00
|
|
|
error[E0539]: malformed `proc_macro_derive` attribute input
|
2025-08-11 17:02:32 +00:00
|
|
|
--> $DIR/attribute.rs:66:1
|
2019-02-28 08:51:35 +03:00
|
|
|
|
|
|
|
|
|
LL | #[proc_macro_derive(d11, a)]
|
2025-07-07 20:48:51 +02:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^-^^
|
2025-08-11 01:46:34 +00:00
|
|
|
| |
|
|
|
|
|
| the only valid argument here is `attributes`
|
|
|
|
|
|
|
2025-08-11 17:02:32 +00:00
|
|
|
= note: for more information, visit <https://doc.rust-lang.org/reference/procedural-macros.html#derive-macros>
|
2025-08-11 01:46:34 +00:00
|
|
|
help: try changing it to one of the following valid forms of the attribute
|
|
|
|
|
|
|
|
|
|
|
LL - #[proc_macro_derive(d11, a)]
|
|
|
|
|
LL + #[proc_macro_derive(TraitName)]
|
|
|
|
|
|
|
|
|
|
|
LL - #[proc_macro_derive(d11, a)]
|
|
|
|
|
LL + #[proc_macro_derive(TraitName, attributes(name1, name2, ...))]
|
|
|
|
|
|
|
2019-02-28 08:51:35 +03:00
|
|
|
|
2025-07-07 20:48:51 +02:00
|
|
|
error[E0539]: malformed `proc_macro_derive` attribute input
|
2025-08-11 17:02:32 +00:00
|
|
|
--> $DIR/attribute.rs:72:1
|
2019-02-28 08:51:35 +03:00
|
|
|
|
|
|
|
|
|
LL | #[proc_macro_derive(d12, attributes)]
|
2025-07-07 20:48:51 +02:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^----------^^
|
2025-08-11 01:46:34 +00:00
|
|
|
| |
|
|
|
|
|
| expected this to be a list
|
|
|
|
|
|
|
2025-08-11 17:02:32 +00:00
|
|
|
= note: for more information, visit <https://doc.rust-lang.org/reference/procedural-macros.html#derive-macros>
|
2025-08-11 01:46:34 +00:00
|
|
|
help: try changing it to one of the following valid forms of the attribute
|
|
|
|
|
|
|
|
|
|
|
LL - #[proc_macro_derive(d12, attributes)]
|
|
|
|
|
LL + #[proc_macro_derive(TraitName)]
|
|
|
|
|
|
|
|
|
|
|
LL - #[proc_macro_derive(d12, attributes)]
|
|
|
|
|
LL + #[proc_macro_derive(TraitName, attributes(name1, name2, ...))]
|
|
|
|
|
|
|
2019-02-28 08:51:35 +03:00
|
|
|
|
2025-07-07 20:48:51 +02:00
|
|
|
error[E0539]: malformed `proc_macro_derive` attribute input
|
2025-08-11 17:02:32 +00:00
|
|
|
--> $DIR/attribute.rs:78:1
|
2019-02-28 08:51:35 +03:00
|
|
|
|
|
|
|
|
|
LL | #[proc_macro_derive(d13, attributes("a"))]
|
2025-07-07 20:48:51 +02:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^---^^^
|
2025-08-11 01:46:34 +00:00
|
|
|
| |
|
|
|
|
|
| expected a valid identifier here
|
|
|
|
|
|
|
2025-08-11 17:02:32 +00:00
|
|
|
= note: for more information, visit <https://doc.rust-lang.org/reference/procedural-macros.html#derive-macros>
|
2025-08-11 01:46:34 +00:00
|
|
|
help: try changing it to one of the following valid forms of the attribute
|
|
|
|
|
|
|
|
|
|
|
LL - #[proc_macro_derive(d13, attributes("a"))]
|
|
|
|
|
LL + #[proc_macro_derive(TraitName)]
|
|
|
|
|
|
|
|
|
|
|
LL - #[proc_macro_derive(d13, attributes("a"))]
|
|
|
|
|
LL + #[proc_macro_derive(TraitName, attributes(name1, name2, ...))]
|
|
|
|
|
|
|
2018-12-02 22:27:37 +03:00
|
|
|
|
2025-07-07 20:48:51 +02:00
|
|
|
error[E0565]: malformed `proc_macro_derive` attribute input
|
2025-08-11 17:02:32 +00:00
|
|
|
--> $DIR/attribute.rs:84:1
|
2018-12-02 22:27:37 +03:00
|
|
|
|
|
2019-02-28 08:51:35 +03:00
|
|
|
LL | #[proc_macro_derive(d14, attributes(a = ""))]
|
2025-07-07 20:48:51 +02:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^----^^^
|
2025-08-11 01:46:34 +00:00
|
|
|
| |
|
|
|
|
|
| didn't expect any arguments here
|
|
|
|
|
|
|
2025-08-11 17:02:32 +00:00
|
|
|
= note: for more information, visit <https://doc.rust-lang.org/reference/procedural-macros.html#derive-macros>
|
2025-08-11 01:46:34 +00:00
|
|
|
help: try changing it to one of the following valid forms of the attribute
|
|
|
|
|
|
|
|
|
|
|
LL - #[proc_macro_derive(d14, attributes(a = ""))]
|
|
|
|
|
LL + #[proc_macro_derive(TraitName)]
|
|
|
|
|
|
|
|
|
|
|
LL - #[proc_macro_derive(d14, attributes(a = ""))]
|
|
|
|
|
LL + #[proc_macro_derive(TraitName, attributes(name1, name2, ...))]
|
|
|
|
|
|
|
2018-12-02 22:27:37 +03:00
|
|
|
|
2025-07-07 20:48:51 +02:00
|
|
|
error[E0539]: malformed `proc_macro_derive` attribute input
|
2025-08-11 17:02:32 +00:00
|
|
|
--> $DIR/attribute.rs:90:1
|
2019-02-28 09:17:24 +03:00
|
|
|
|
|
|
|
|
|
LL | #[proc_macro_derive(d15, attributes(m::a))]
|
2025-07-07 20:48:51 +02:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^----^^^
|
2025-08-11 01:46:34 +00:00
|
|
|
| |
|
|
|
|
|
| expected a valid identifier here
|
|
|
|
|
|
|
2025-08-11 17:02:32 +00:00
|
|
|
= note: for more information, visit <https://doc.rust-lang.org/reference/procedural-macros.html#derive-macros>
|
2025-08-11 01:46:34 +00:00
|
|
|
help: try changing it to one of the following valid forms of the attribute
|
|
|
|
|
|
|
|
|
|
|
LL - #[proc_macro_derive(d15, attributes(m::a))]
|
|
|
|
|
LL + #[proc_macro_derive(TraitName)]
|
|
|
|
|
|
|
|
|
|
|
LL - #[proc_macro_derive(d15, attributes(m::a))]
|
|
|
|
|
LL + #[proc_macro_derive(TraitName, attributes(name1, name2, ...))]
|
|
|
|
|
|
|
2019-02-28 09:17:24 +03:00
|
|
|
|
2025-07-07 20:48:51 +02:00
|
|
|
error[E0565]: malformed `proc_macro_derive` attribute input
|
2025-08-11 17:02:32 +00:00
|
|
|
--> $DIR/attribute.rs:96:1
|
2018-12-02 22:27:37 +03:00
|
|
|
|
|
2019-02-28 08:51:35 +03:00
|
|
|
LL | #[proc_macro_derive(d16, attributes(a(b)))]
|
2025-07-07 20:48:51 +02:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^---^^^
|
2025-08-11 01:46:34 +00:00
|
|
|
| |
|
|
|
|
|
| didn't expect any arguments here
|
|
|
|
|
|
|
2025-08-11 17:02:32 +00:00
|
|
|
= note: for more information, visit <https://doc.rust-lang.org/reference/procedural-macros.html#derive-macros>
|
2025-08-11 01:46:34 +00:00
|
|
|
help: try changing it to one of the following valid forms of the attribute
|
|
|
|
|
|
|
|
|
|
|
LL - #[proc_macro_derive(d16, attributes(a(b)))]
|
|
|
|
|
LL + #[proc_macro_derive(TraitName)]
|
|
|
|
|
|
|
|
|
|
|
LL - #[proc_macro_derive(d16, attributes(a(b)))]
|
|
|
|
|
LL + #[proc_macro_derive(TraitName, attributes(name1, name2, ...))]
|
|
|
|
|
|
|
2018-12-02 22:27:37 +03:00
|
|
|
|
2025-07-07 20:48:51 +02:00
|
|
|
error[E0539]: malformed `proc_macro_derive` attribute input
|
2025-08-11 17:02:32 +00:00
|
|
|
--> $DIR/attribute.rs:102:1
|
2019-03-03 19:04:58 +03:00
|
|
|
|
|
|
|
|
|
LL | #[proc_macro_derive(d17, attributes(self))]
|
2025-07-07 20:48:51 +02:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^----^^^
|
2025-08-11 01:46:34 +00:00
|
|
|
| |
|
|
|
|
|
| expected a valid identifier here
|
|
|
|
|
|
|
2025-08-11 17:02:32 +00:00
|
|
|
= note: for more information, visit <https://doc.rust-lang.org/reference/procedural-macros.html#derive-macros>
|
2025-08-11 01:46:34 +00:00
|
|
|
help: try changing it to one of the following valid forms of the attribute
|
|
|
|
|
|
|
|
|
|
|
LL - #[proc_macro_derive(d17, attributes(self))]
|
|
|
|
|
LL + #[proc_macro_derive(TraitName)]
|
|
|
|
|
|
|
|
|
|
|
LL - #[proc_macro_derive(d17, attributes(self))]
|
|
|
|
|
LL + #[proc_macro_derive(TraitName, attributes(name1, name2, ...))]
|
|
|
|
|
|
|
2019-03-03 19:04:58 +03:00
|
|
|
|
2025-07-07 20:48:51 +02:00
|
|
|
error: aborting due to 16 previous errors
|
2018-12-02 22:27:37 +03:00
|
|
|
|
2025-07-07 20:48:51 +02:00
|
|
|
Some errors have detailed explanations: E0539, E0565.
|
|
|
|
|
For more information about an error, try `rustc --explain E0539`.
|