1 // Checks that exported items without stability attributes cause an error
4 #![feature(staged_api)]
6 #![stable(feature = "stable_test_feature", since = "1.0.0")]
9 //~^ ERROR function has missing stability attribute
13 #[unstable(feature = "unstable_test_feature", issue = "none")]
15 // #[unstable] is inherited
19 #[stable(feature = "stable_test_feature", since="1.0.0")]
21 // #[stable] is not inherited
23 //~^ ERROR function has missing stability attribute