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

13 lines
375 B
Rust
Raw Normal View History

2018-02-24 21:11:06 -06:00
// aux-build:unstable-macros.rs
#![feature(staged_api)]
#[macro_use] extern crate unstable_macros;
#[unstable(feature = "local_unstable", issue = "0")]
macro_rules! local_unstable { () => () }
fn main() {
local_unstable!(); //~ ERROR use of unstable library feature 'local_unstable'
unstable_macro!(); //~ ERROR use of unstable library feature 'unstable_macros'
2018-02-24 21:11:06 -06:00
}