summaryrefslogtreecommitdiffstats
path: root/tests/ui/stability-attribute/issue-106589.rs
blob: 3cad9a3d283242d3a168f9c6f1b9bf1934f9864c (plain)
1
2
3
4
5
6
7
8
9
10
// #![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() {}