rust/tests/ui/stability-attribute/issue-106589.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
348 B
Rust
Raw Normal View History

// #![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() {}