rust/tests/ui/feature-gates/feature-gate-macro-attr.rs
Josh Triplett bad0d45b2d mbe: Parse macro attribute rules
This handles various kinds of errors, but does not allow applying the
attributes yet.

This adds the feature gate `macro_attr`.
2025-08-08 11:00:54 -07:00

5 lines
114 B
Rust

#![crate_type = "lib"]
macro_rules! myattr { attr() {} => {} }
//~^ ERROR `macro_rules!` attributes are unstable