rust/src/test/ui/macros/macro-stability-rpass.rs

15 lines
293 B
Rust
Raw Normal View History

// run-pass
2018-02-24 21:11:06 -06:00
// aux-build:unstable-macros.rs
#![feature(unstable_macros, local_unstable)]
2018-02-24 21:11:06 -06:00
#[macro_use] extern crate unstable_macros;
#[unstable(feature = "local_unstable", issue = "none")]
2018-02-24 21:11:06 -06:00
macro_rules! local_unstable { () => () }
fn main() {
unstable_macro!();
local_unstable!();
}