mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
16 lines
382 B
Rust
16 lines
382 B
Rust
#![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() {}
|