rust/tests/ui/feature-gates/feature-gate-macro-derive.stderr
Josh Triplett 8fb98ef368 mbe: Parse macro derive rules
This handles various kinds of errors, but does not allow applying the
derive yet.

This adds the feature gate `macro_derive`.
2025-08-14 13:53:57 -07:00

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`.