| error: arguments to `macro_use` are not allowed here |
| --> $DIR/issue-43106-gating-of-macro_use.rs:14:17 |
| | |
| LL | mod inner { #![macro_use(my_macro)] } |
| | ^^^^^^^^^^^^^^^^^^^^^^^ |
| |
| error: arguments to `macro_use` are not allowed here |
| --> $DIR/issue-43106-gating-of-macro_use.rs:11:1 |
| | |
| LL | #[macro_use(my_macro)] |
| | ^^^^^^^^^^^^^^^^^^^^^^ |
| |
| error: arguments to `macro_use` are not allowed here |
| --> $DIR/issue-43106-gating-of-macro_use.rs:6:1 |
| | |
| LL | #![macro_use(my_macro)] |
| | ^^^^^^^^^^^^^^^^^^^^^^^ |
| |
| error[E0539]: malformed `macro_use` attribute input |
| --> $DIR/issue-43106-gating-of-macro_use.rs:17:7 |
| | |
| LL | #[macro_use = "2700"] struct S; |
| | ^^^^^^^^^^-------- |
| | | |
| | expected a list or no arguments here |
| | |
| = note: for more information, visit <https://doc.rust-lang.org/reference/macros-by-example.html#the-macro_use-attribute> |
| help: try changing it to one of the following valid forms of the attribute |
| | |
| LL - #[macro_use = "2700"] struct S; |
| LL + #[macro_use] struct S; |
| | |
| LL - #[macro_use = "2700"] struct S; |
| LL + #[macro_use(name1, name2, ...)] struct S; |
| | |
| |
| warning: the `macro_use` attribute cannot be used on crates |
| --> $DIR/issue-43106-gating-of-macro_use.rs:6:4 |
| | |
| LL | #![macro_use(my_macro)] |
| | ^^^^^^^^^ |
| | |
| = help: the `macro_use` attribute can be applied to extern crates and modules |
| = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! |
| = note: requested on the command line with `-W unused-attributes` |
| |
| warning: the `macro_use` attribute cannot be used on structs |
| --> $DIR/issue-43106-gating-of-macro_use.rs:17:7 |
| | |
| LL | #[macro_use = "2700"] struct S; |
| | ^^^^^^^^^ |
| | |
| = help: the `macro_use` attribute can be applied to extern crates and modules |
| = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! |
| |
| warning: the `macro_use` attribute cannot be used on functions |
| --> $DIR/issue-43106-gating-of-macro_use.rs:22:7 |
| | |
| LL | #[macro_use] fn f() { } |
| | ^^^^^^^^^ |
| | |
| = help: the `macro_use` attribute can be applied to extern crates and modules |
| = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! |
| |
| warning: the `macro_use` attribute cannot be used on type aliases |
| --> $DIR/issue-43106-gating-of-macro_use.rs:26:7 |
| | |
| LL | #[macro_use] type T = S; |
| | ^^^^^^^^^ |
| | |
| = help: the `macro_use` attribute can be applied to extern crates and modules |
| = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! |
| |
| warning: the `macro_use` attribute cannot be used on inherent impl blocks |
| --> $DIR/issue-43106-gating-of-macro_use.rs:30:7 |
| | |
| LL | #[macro_use] impl S { } |
| | ^^^^^^^^^ |
| | |
| = help: the `macro_use` attribute can be applied to extern crates and modules |
| = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! |
| |
| error: aborting due to 4 previous errors; 5 warnings emitted |
| |
| For more information about this error, try `rustc --explain E0539`. |