rust/tests/ui/proc-macro/invalid-attributes.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

39 lines
1.2 KiB
Plaintext
Raw Normal View History

error: malformed `proc_macro` attribute input
2018-12-25 09:56:47 -06:00
--> $DIR/invalid-attributes.rs:10:1
|
2019-03-09 06:03:44 -06:00
LL | #[proc_macro = "test"]
| ^^^^^^^^^^^^^^^^^^^^^^ help: must be of the form: `#[proc_macro]`
error: malformed `proc_macro` attribute input
2018-12-25 09:56:47 -06:00
--> $DIR/invalid-attributes.rs:13:1
|
2019-03-09 06:03:44 -06:00
LL | #[proc_macro()]
| ^^^^^^^^^^^^^^^ help: must be of the form: `#[proc_macro]`
error: malformed `proc_macro` attribute input
2018-12-25 09:56:47 -06:00
--> $DIR/invalid-attributes.rs:16:1
|
2019-03-09 06:03:44 -06:00
LL | #[proc_macro(x)]
| ^^^^^^^^^^^^^^^^ help: must be of the form: `#[proc_macro]`
error: malformed `proc_macro_attribute` attribute input
2018-12-25 09:56:47 -06:00
--> $DIR/invalid-attributes.rs:19:1
|
2019-03-09 06:03:44 -06:00
LL | #[proc_macro_attribute = "test"]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: must be of the form: `#[proc_macro_attribute]`
error: malformed `proc_macro_attribute` attribute input
2018-12-25 09:56:47 -06:00
--> $DIR/invalid-attributes.rs:22:1
|
2019-03-09 06:03:44 -06:00
LL | #[proc_macro_attribute()]
| ^^^^^^^^^^^^^^^^^^^^^^^^^ help: must be of the form: `#[proc_macro_attribute]`
error: malformed `proc_macro_attribute` attribute input
2018-12-25 09:56:47 -06:00
--> $DIR/invalid-attributes.rs:25:1
|
2019-03-09 06:03:44 -06:00
LL | #[proc_macro_attribute(x)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: must be of the form: `#[proc_macro_attribute]`
error: aborting due to 6 previous errors