2019-02-28 08:51:35 +03:00
|
|
|
error: attribute must have either one or two arguments
|
|
|
|
--> $DIR/attribute.rs:17:1
|
2018-12-02 22:27:37 +03:00
|
|
|
|
|
2019-02-28 08:51:35 +03:00
|
|
|
LL | #[proc_macro_derive(d3, a, b)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2018-12-02 22:27:37 +03:00
|
|
|
|
|
|
|
error: attribute must have either one or two arguments
|
2019-02-28 08:51:35 +03:00
|
|
|
--> $DIR/attribute.rs:21:1
|
|
|
|
|
|
|
|
|
LL | #[proc_macro_derive(d4, attributes(a), b)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: not a meta item
|
|
|
|
--> $DIR/attribute.rs:25:21
|
2018-12-02 22:27:37 +03:00
|
|
|
|
|
2019-02-28 08:51:35 +03:00
|
|
|
LL | #[proc_macro_derive("a")]
|
|
|
|
| ^^^
|
2018-12-02 22:27:37 +03:00
|
|
|
|
|
|
|
error: must only be one word
|
2019-02-28 08:51:35 +03:00
|
|
|
--> $DIR/attribute.rs:29:21
|
2018-12-02 22:27:37 +03:00
|
|
|
|
|
2019-02-28 08:51:35 +03:00
|
|
|
LL | #[proc_macro_derive(d6 = "")]
|
|
|
|
| ^^^^^^^
|
2018-12-02 22:27:37 +03:00
|
|
|
|
2019-02-28 09:17:24 +03:00
|
|
|
error: must only be one word
|
|
|
|
--> $DIR/attribute.rs:33:21
|
|
|
|
|
|
|
|
|
LL | #[proc_macro_derive(m::d7)]
|
|
|
|
| ^^^^^
|
|
|
|
|
2018-12-02 22:27:37 +03:00
|
|
|
error: must only be one word
|
2019-02-28 08:51:35 +03:00
|
|
|
--> $DIR/attribute.rs:37:21
|
|
|
|
|
|
|
|
|
LL | #[proc_macro_derive(d8(a))]
|
|
|
|
| ^^^^^
|
|
|
|
|
2019-03-03 19:04:58 +03:00
|
|
|
error: `self` cannot be a name of derive macro
|
|
|
|
--> $DIR/attribute.rs:41:21
|
|
|
|
|
|
|
|
|
LL | #[proc_macro_derive(self)]
|
|
|
|
| ^^^^
|
|
|
|
|
|
|
|
error: cannot override a built-in derive macro
|
2019-02-28 08:51:35 +03:00
|
|
|
--> $DIR/attribute.rs:45:21
|
|
|
|
|
|
|
|
|
LL | #[proc_macro_derive(PartialEq)]
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
error: second argument must be `attributes`
|
|
|
|
--> $DIR/attribute.rs:49:26
|
2018-12-02 22:27:37 +03:00
|
|
|
|
|
2019-02-28 08:51:35 +03:00
|
|
|
LL | #[proc_macro_derive(d11, a)]
|
|
|
|
| ^
|
|
|
|
|
|
|
|
error: attribute must be of form: `attributes(foo, bar)`
|
|
|
|
--> $DIR/attribute.rs:49:26
|
|
|
|
|
|
|
|
|
LL | #[proc_macro_derive(d11, a)]
|
|
|
|
| ^
|
|
|
|
|
|
|
|
error: attribute must be of form: `attributes(foo, bar)`
|
|
|
|
--> $DIR/attribute.rs:54:26
|
|
|
|
|
|
|
|
|
LL | #[proc_macro_derive(d12, attributes)]
|
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
|
|
error: not a meta item
|
|
|
|
--> $DIR/attribute.rs:58:37
|
|
|
|
|
|
|
|
|
LL | #[proc_macro_derive(d13, attributes("a"))]
|
|
|
|
| ^^^
|
2018-12-02 22:27:37 +03:00
|
|
|
|
|
|
|
error: must only be one word
|
2019-02-28 08:51:35 +03:00
|
|
|
--> $DIR/attribute.rs:62:37
|
2018-12-02 22:27:37 +03:00
|
|
|
|
|
2019-02-28 08:51:35 +03:00
|
|
|
LL | #[proc_macro_derive(d14, attributes(a = ""))]
|
|
|
|
| ^^^^^^
|
2018-12-02 22:27:37 +03:00
|
|
|
|
2019-02-28 09:17:24 +03:00
|
|
|
error: must only be one word
|
|
|
|
--> $DIR/attribute.rs:66:37
|
|
|
|
|
|
|
|
|
LL | #[proc_macro_derive(d15, attributes(m::a))]
|
|
|
|
| ^^^^
|
|
|
|
|
2019-02-28 08:51:35 +03:00
|
|
|
error: must only be one word
|
|
|
|
--> $DIR/attribute.rs:70:37
|
2018-12-02 22:27:37 +03:00
|
|
|
|
|
2019-02-28 08:51:35 +03:00
|
|
|
LL | #[proc_macro_derive(d16, attributes(a(b)))]
|
|
|
|
| ^^^^
|
2018-12-02 22:27:37 +03:00
|
|
|
|
2019-03-03 19:04:58 +03:00
|
|
|
error: `self` cannot be a name of derive helper attribute
|
|
|
|
--> $DIR/attribute.rs:74:37
|
|
|
|
|
|
|
|
|
LL | #[proc_macro_derive(d17, attributes(self))]
|
|
|
|
| ^^^^
|
|
|
|
|
2019-01-12 19:00:42 +03:00
|
|
|
error: attribute must be of the form `#[proc_macro_derive(TraitName, /*opt*/ attributes(name1, name2, ...))]`
|
2019-02-28 08:51:35 +03:00
|
|
|
--> $DIR/attribute.rs:9:1
|
2019-01-02 02:21:05 +03:00
|
|
|
|
|
|
|
|
LL | #[proc_macro_derive]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
2019-01-12 19:00:42 +03:00
|
|
|
error: attribute must be of the form `#[proc_macro_derive(TraitName, /*opt*/ attributes(name1, name2, ...))]`
|
2019-02-28 08:51:35 +03:00
|
|
|
--> $DIR/attribute.rs:13:1
|
2019-01-02 02:21:05 +03:00
|
|
|
|
|
2019-02-28 08:51:35 +03:00
|
|
|
LL | #[proc_macro_derive = ""]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
2019-01-02 02:21:05 +03:00
|
|
|
|
2019-03-03 19:04:58 +03:00
|
|
|
error: aborting due to 18 previous errors
|
2018-12-02 22:27:37 +03:00
|
|
|
|