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