mirror of
https://github.com/rust-lang/rust.git
synced 2025-12-02 16:28:09 +00:00
This handles various kinds of errors, but does not allow applying the derive yet. This adds the feature gate `macro_derive`.
14 lines
578 B
Plaintext
14 lines
578 B
Plaintext
error[E0658]: `macro_rules!` derives are unstable
|
|
--> $DIR/feature-gate-macro-derive.rs:3:1
|
|
|
|
|
LL | macro_rules! MyDerive { derive() {} => {} }
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
= 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`.
|