summaryrefslogtreecommitdiffstats
path: root/tests/ui/attributes/const-stability-on-macro.rs
blob: af268ccd5366f6c92ed7f357cad5644ddd8a7d72 (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 = "3.3.3")]
//~^ 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() {}