summaryrefslogtreecommitdiffstats
path: root/tests/ui/attributes/const-stability-on-macro.rs
blob: 412af195d7a19284976efe3a2089e0dd08308802 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#![feature(staged_api)]
#![stable(feature = "rust1", since = "1.0.0")]

#[rustc_const_stable(feature = "foo", since = "0")]
//~^ ERROR macros cannot have const stability attributes
macro_rules! foo {
    () => {};
}

#[rustc_const_unstable(feature = "bar", issue="none")]
//~^ ERROR macros cannot have const stability attributes
macro_rules! bar {
    () => {};
}

fn main() {}