2018-12-02 22:27:37 +03:00
|
|
|
error: must only be one word
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/attribute.rs:21:5
|
2018-12-02 22:27:37 +03:00
|
|
|
|
|
|
|
|
LL | a = "b"
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
error: attribute must have either one or two arguments
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/attribute.rs:28:1
|
2018-12-02 22:27:37 +03:00
|
|
|
|
|
|
|
|
LL | #[proc_macro_derive(b, c, d)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: must only be one word
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/attribute.rs:34:21
|
2018-12-02 22:27:37 +03:00
|
|
|
|
|
|
|
|
LL | #[proc_macro_derive(d(e))]
|
|
|
|
| ^^^^
|
|
|
|
|
|
|
|
error: must only be one word
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/attribute.rs:40:35
|
2018-12-02 22:27:37 +03:00
|
|
|
|
|
|
|
|
LL | #[proc_macro_derive(f, attributes(g = "h"))]
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
error: must only be one word
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/attribute.rs:46:35
|
2018-12-02 22:27:37 +03:00
|
|
|
|
|
|
|
|
LL | #[proc_macro_derive(i, attributes(j(k)))]
|
|
|
|
| ^^^^
|
|
|
|
|
|
|
|
error: attribute must have either one or two arguments
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/attribute.rs:52:1
|
2018-12-02 22:27:37 +03:00
|
|
|
|
|
|
|
|
LL | #[proc_macro_derive(l, attributes(m), n)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
2019-01-12 19:00:42 +03:00
|
|
|
error: attribute must be of the form `#[proc_macro_derive(TraitName, /*opt*/ attributes(name1, name2, ...))]`
|
2019-01-02 02:21:05 +03:00
|
|
|
--> $DIR/attribute.rs:8:1
|
|
|
|
|
|
|
|
|
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-01-02 02:21:05 +03:00
|
|
|
--> $DIR/attribute.rs:14:1
|
|
|
|
|
|
|
|
|
LL | #[proc_macro_derive = "foo"]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
2018-12-02 22:27:37 +03:00
|
|
|
error: aborting due to 8 previous errors
|
|
|
|
|