rust/tests/ui/macros/auxiliary/unstable-macros.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
578 B
Rust
Raw Normal View History

#![feature(decl_macro)]
2018-02-24 21:11:06 -06:00
#![feature(staged_api)]
2018-07-24 12:24:12 -05:00
#![stable(feature = "unit_test", since = "1.0.0")]
2018-02-24 21:11:06 -06:00
#[unstable(feature = "unstable_macros", issue = "none")]
2018-02-24 21:11:06 -06:00
#[macro_export]
macro_rules! unstable_macro{ () => () }
#[stable(feature = "deprecated_macros", since = "1.0.0")]
2022-03-04 20:59:18 -06:00
#[deprecated(since = "1.0.0", note = "deprecation note")]
#[macro_export]
macro_rules! deprecated_macro{ () => () }
// FIXME: Cannot use a `pub` macro 2.0 in a staged API crate due to reachability issues.
// #[unstable(feature = "unstable_macros", issue = "none")]
// pub macro unstable_macro_modern() {}