]> git.lizzy.rs Git - rust.git/blob - src/test/ui/stability-attribute/stability-attribute-trait-impl.rs
Auto merge of #98051 - davidtwco:split-dwarf-stabilization, r=wesleywiser
[rust.git] / src / test / ui / stability-attribute / stability-attribute-trait-impl.rs
1 #![feature(staged_api)]
2 //~^ ERROR module has missing stability attribute
3
4 #[stable(feature = "a", since = "1")]
5 struct StableType;
6
7 #[unstable(feature = "b", issue = "none")]
8 struct UnstableType;
9
10 #[stable(feature = "c", since = "1")]
11 trait StableTrait {}
12
13 #[unstable(feature = "d", issue = "none")]
14 trait UnstableTrait {}
15
16 #[unstable(feature = "e", issue = "none")]
17 impl UnstableTrait for UnstableType {}
18
19 #[unstable(feature = "f", issue = "none")]
20 impl StableTrait for UnstableType {}
21
22 #[unstable(feature = "g", issue = "none")]
23 impl UnstableTrait for StableType {}
24
25 #[unstable(feature = "h", issue = "none")]
26 //~^ ERROR an `#[unstable]` annotation here has no effect [ineffective_unstable_trait_impl]
27 impl StableTrait for StableType {}
28
29 fn main() {}