blob: dbc0b940265fcf09d4165df324abc839f9fe18c9 [file]
// For historical reasons, decl macros 2.0 don't have an erroring pre-expansion feature gate.
// We're now at least issuing a warning for those that only exist before macro expansion.
// FIXME(#154045): Turn this pre-expansion warning into an error and remove the post-expansion gate.
// As part of this, move these test cases into `feature-gate-decl_macro.rs`.
//@ check-pass
#[cfg(false)]
macro make() {}
//~^ WARN `macro` is experimental
//~| WARN unstable syntax can change at any point in the future
#[cfg(false)]
macro create { () => {} }
//~^ WARN `macro` is experimental
//~| WARN unstable syntax can change at any point in the future
fn main() {}