mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 23:04:33 +00:00
11 lines
348 B
Rust
11 lines
348 B
Rust
// #![feature(staged_api)] // note: `staged_api` not enabled
|
|
|
|
#![stable(feature = "foo", since = "1.0.0")]
|
|
//~^ ERROR stability attributes may not be used outside of the standard library
|
|
|
|
#[unstable(feature = "foo", issue = "none")]
|
|
//~^ ERROR stability attributes may not be used outside of the standard library
|
|
fn foo_unstable() {}
|
|
|
|
fn main() {}
|