blob: 656564fc9e3f8240d66f64182bd4f4e955a47499 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
#![feature(staged_api)]
#[stable(feature = "x", since = "1")]
struct StableType;
#[unstable(feature = "x", issue = "none")]
struct UnstableType;
#[stable(feature = "x", since = "1")]
trait StableTrait {}
#[unstable(feature = "x", issue = "none")]
trait UnstableTrait {}
#[unstable(feature = "x", issue = "none")]
impl UnstableTrait for UnstableType {}
#[unstable(feature = "x", issue = "none")]
impl StableTrait for UnstableType {}
#[unstable(feature = "x", issue = "none")]
impl UnstableTrait for StableType {}
#[unstable(feature = "x", issue = "none")]
//~^ ERROR an `#[unstable]` annotation here has no effect [ineffective_unstable_trait_impl]
impl StableTrait for StableType {}
fn main() {}
|