2022-01-19 09:24:49 -06:00
|
|
|
#![feature(staged_api)]
|
|
|
|
#![stable(feature = "rust1", since = "1.0.0")]
|
|
|
|
|
2021-02-11 12:37:31 -06:00
|
|
|
#[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() {}
|