]> git.lizzy.rs Git - rust.git/blob - tests/ui/attributes/const-stability-on-macro.rs
Rollup merge of #106427 - mejrs:translation_errors, r=davidtwco
[rust.git] / tests / ui / attributes / const-stability-on-macro.rs
1 #![feature(staged_api)]
2 #![stable(feature = "rust1", since = "1.0.0")]
3
4 #[rustc_const_stable(feature = "foo", since = "0")]
5 //~^ ERROR macros cannot have const stability attributes
6 macro_rules! foo {
7     () => {};
8 }
9
10 #[rustc_const_unstable(feature = "bar", issue="none")]
11 //~^ ERROR macros cannot have const stability attributes
12 macro_rules! bar {
13     () => {};
14 }
15
16 fn main() {}