1
Fork 0
rust/src/test/ui/proc-macro/invalid-attributes.stderr

39 lines
998 B
Text
Raw Normal View History

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