]> git.lizzy.rs Git - rust.git/blob - tests/ui/stability-attribute/issue-106589.rs
Rollup merge of #107091 - clubby789:infer-ftl-missing-dollar, r=compiler-errors
[rust.git] / tests / ui / stability-attribute / issue-106589.rs
1 // #![feature(staged_api)] // note: `staged_api` not enabled
2
3 #![stable(feature = "foo", since = "1.0.0")]
4 //~^ ERROR stability attributes may not be used outside of the standard library
5
6 #[unstable(feature = "foo", issue = "none")]
7 //~^ ERROR stability attributes may not be used outside of the standard library
8 fn foo_unstable() {}
9
10 fn main() {}