2020-09-10 20:55:04 +02:00
|
|
|
#![feature(staged_api)]
|
2021-07-20 23:23:22 -04:00
|
|
|
//~^ ERROR module has missing stability attribute
|
2020-09-10 20:55:04 +02:00
|
|
|
|
2021-07-20 23:23:22 -04:00
|
|
|
#[stable(feature = "a", since = "1")]
|
2020-09-10 20:55:04 +02:00
|
|
|
struct StableType;
|
|
|
|
|
|
2021-07-20 23:23:22 -04:00
|
|
|
#[unstable(feature = "b", issue = "none")]
|
2020-09-10 20:55:04 +02:00
|
|
|
struct UnstableType;
|
|
|
|
|
|
2021-07-20 23:23:22 -04:00
|
|
|
#[stable(feature = "c", since = "1")]
|
2020-09-10 20:55:04 +02:00
|
|
|
trait StableTrait {}
|
|
|
|
|
|
2021-07-20 23:23:22 -04:00
|
|
|
#[unstable(feature = "d", issue = "none")]
|
2020-09-10 20:55:04 +02:00
|
|
|
trait UnstableTrait {}
|
|
|
|
|
|
2021-07-20 23:23:22 -04:00
|
|
|
#[unstable(feature = "e", issue = "none")]
|
2020-09-10 20:55:04 +02:00
|
|
|
impl UnstableTrait for UnstableType {}
|
|
|
|
|
|
2021-07-20 23:23:22 -04:00
|
|
|
#[unstable(feature = "f", issue = "none")]
|
2020-09-10 20:55:04 +02:00
|
|
|
impl StableTrait for UnstableType {}
|
|
|
|
|
|
2021-07-20 23:23:22 -04:00
|
|
|
#[unstable(feature = "g", issue = "none")]
|
2020-09-10 20:55:04 +02:00
|
|
|
impl UnstableTrait for StableType {}
|
|
|
|
|
|
2021-07-20 23:23:22 -04:00
|
|
|
#[unstable(feature = "h", issue = "none")]
|
2021-01-15 15:21:20 -05:00
|
|
|
//~^ ERROR an `#[unstable]` annotation here has no effect [ineffective_unstable_trait_impl]
|
2020-09-10 20:55:04 +02:00
|
|
|
impl StableTrait for StableType {}
|
|
|
|
|
|
|
|
|
|
fn main() {}
|