mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 23:34:48 +00:00
17 lines
378 B
Rust
17 lines
378 B
Rust
#![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() {}
|