1 #![feature(staged_api)]
3 #[stable(feature = "x", since = "1")]
6 #[unstable(feature = "x", issue = "none")]
9 #[stable(feature = "x", since = "1")]
12 #[unstable(feature = "x", issue = "none")]
13 trait UnstableTrait {}
15 #[unstable(feature = "x", issue = "none")]
16 impl UnstableTrait for UnstableType {}
18 #[unstable(feature = "x", issue = "none")]
19 impl StableTrait for UnstableType {}
21 #[unstable(feature = "x", issue = "none")]
22 impl UnstableTrait for StableType {}
24 #[unstable(feature = "x", issue = "none")]
25 //~^ ERROR an `#[unstable]` annotation here has no effect [ineffective_unstable_trait_impl]
26 impl StableTrait for StableType {}