2020-01-10 08:57:36 -06:00
|
|
|
error: arguments to `macro_use` are not allowed here
|
2020-12-31 08:59:09 -06:00
|
|
|
--> $DIR/issue-43106-gating-of-macro_use.rs:12:17
|
2017-12-06 02:27:47 -06:00
|
|
|
|
|
2020-12-31 08:59:09 -06:00
|
|
|
LL | mod inner { #![macro_use(my_macro)] }
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^
|
2017-12-06 02:27:47 -06:00
|
|
|
|
2020-01-10 08:57:36 -06:00
|
|
|
error: arguments to `macro_use` are not allowed here
|
2019-01-01 17:21:05 -06:00
|
|
|
--> $DIR/issue-43106-gating-of-macro_use.rs:9:1
|
2017-12-06 02:27:47 -06:00
|
|
|
|
|
2019-01-01 17:21:05 -06:00
|
|
|
LL | #[macro_use(my_macro)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^
|
2017-12-06 02:27:47 -06:00
|
|
|
|
2020-01-10 08:57:36 -06:00
|
|
|
error: arguments to `macro_use` are not allowed here
|
2020-12-31 08:59:09 -06:00
|
|
|
--> $DIR/issue-43106-gating-of-macro_use.rs:6:1
|
2017-12-06 02:27:47 -06:00
|
|
|
|
|
2020-12-31 08:59:09 -06:00
|
|
|
LL | #![macro_use(my_macro)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^
|
2017-12-06 02:27:47 -06:00
|
|
|
|
2019-05-21 19:47:23 -05:00
|
|
|
error: malformed `macro_use` attribute input
|
2019-01-01 17:21:05 -06:00
|
|
|
--> $DIR/issue-43106-gating-of-macro_use.rs:15:5
|
|
|
|
|
|
|
|
|
LL | #[macro_use = "2700"] struct S;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^
|
2019-10-24 00:20:58 -05:00
|
|
|
|
|
2019-05-21 19:47:23 -05:00
|
|
|
help: the following are the possible correct uses
|
|
|
|
|
|
|
|
|
LL | #[macro_use(name1, name2, ...)] struct S;
|
2021-06-21 21:07:19 -05:00
|
|
|
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
2021-10-01 13:09:31 -05:00
|
|
|
LL | #[macro_use] struct S;
|
|
|
|
| ~~~~~~~~~~~~
|
2019-01-01 17:21:05 -06:00
|
|
|
|
|
|
|
error: aborting due to 4 previous errors
|
2017-12-06 02:27:47 -06:00
|
|
|
|