]> git.lizzy.rs Git - rust.git/blob - src/test/ui/stability-attribute/stability-attribute-sanity-2.rs
Auto merge of #103894 - mati865:gnullvm-libunwind-changes, r=thomcc
[rust.git] / src / test / ui / stability-attribute / stability-attribute-sanity-2.rs
1 // More checks that stability attributes are used correctly
2
3 #![feature(staged_api)]
4
5 #![stable(feature = "stable_test_feature", since = "1.0.0")]
6
7 #[stable(feature = "a", feature = "b", since = "1.0.0")] //~ ERROR multiple 'feature' items
8 fn f1() { }
9
10 #[stable(feature = "a", sinse = "1.0.0")] //~ ERROR unknown meta item 'sinse'
11 fn f2() { }
12
13 #[unstable(feature = "a", issue = "no")]
14 //~^ ERROR `issue` must be a non-zero numeric string or "none"
15 fn f3() { }
16
17 fn main() { }