1 // Various checks that stability attributes are used correctly, per RFC 507
3 #![feature(staged_api)]
5 #![stable(feature = "rust1", since = "1.0.0")]
7 mod bogus_attribute_types_2 {
8 #[unstable] //~ ERROR malformed `unstable` attribute
11 #[unstable = "b"] //~ ERROR malformed `unstable` attribute
14 #[stable] //~ ERROR malformed `stable` attribute
17 #[stable = "a"] //~ ERROR malformed `stable` attribute
20 #[stable(feature = "a", since = "b")]
21 #[deprecated] //~ ERROR missing 'since'
24 #[stable(feature = "a", since = "b")]
25 #[deprecated = "a"] //~ ERROR missing 'since'