rust/src/test/ui/macros/auxiliary/unstable-macros.rs

17 lines
582 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 = "0")]
#[macro_export]
macro_rules! unstable_macro{ () => () }
#[stable(feature = "deprecated_macros", since = "1.0.0")]
#[rustc_deprecated(since = "1.0.0", reason = "deprecation reason")]
#[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 = "0")]
// pub macro unstable_macro_modern() {}