mirror of
https://github.com/rust-lang/rust.git
synced 2025-11-25 05:57:54 +00:00
This handles various kinds of errors, but does not allow applying the attributes yet. This adds the feature gate `macro_attr`.
14 lines
571 B
Plaintext
14 lines
571 B
Plaintext
error[E0658]: `macro_rules!` attributes are unstable
|
|
--> $DIR/feature-gate-macro-attr.rs:3:1
|
|
|
|
|
LL | macro_rules! myattr { attr() {} => {} }
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
= note: see issue #83527 <https://github.com/rust-lang/rust/issues/83527> for more information
|
|
= help: add `#![feature(macro_attr)]` to the crate attributes to enable
|
|
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
|
|
|
error: aborting due to 1 previous error
|
|
|
|
For more information about this error, try `rustc --explain E0658`.
|