2016-04-26 12:51:14 -05:00
|
|
|
#![crate_name="inherited_stability"]
|
|
|
|
#![crate_type = "lib"]
|
2019-12-21 05:16:18 -06:00
|
|
|
#![unstable(feature = "unstable_test_feature", issue = "none")]
|
2016-04-26 12:51:14 -05:00
|
|
|
#![feature(staged_api)]
|
|
|
|
|
|
|
|
pub fn unstable() {}
|
|
|
|
|
|
|
|
#[stable(feature = "rust1", since = "1.0.0")]
|
|
|
|
pub fn stable() {}
|
|
|
|
|
|
|
|
#[stable(feature = "rust1", since = "1.0.0")]
|
|
|
|
pub mod stable_mod {
|
2019-12-21 05:16:18 -06:00
|
|
|
#[unstable(feature = "unstable_test_feature", issue = "none")]
|
2016-04-26 12:51:14 -05:00
|
|
|
pub fn unstable() {}
|
|
|
|
|
|
|
|
#[stable(feature = "rust1", since = "1.0.0")]
|
|
|
|
pub fn stable() {}
|
|
|
|
}
|
|
|
|
|
2019-12-21 05:16:18 -06:00
|
|
|
#[unstable(feature = "unstable_test_feature", issue = "none")]
|
2016-04-26 12:51:14 -05:00
|
|
|
pub mod unstable_mod {
|
2018-07-23 06:22:23 -05:00
|
|
|
#[stable(feature = "stable_test_feature", since = "1.0.0")]
|
2022-03-04 20:59:18 -06:00
|
|
|
#[deprecated(since = "1.0.0", note = "text")]
|
2016-04-26 12:51:14 -05:00
|
|
|
pub fn deprecated() {}
|
|
|
|
|
|
|
|
pub fn unstable() {}
|
|
|
|
}
|
|
|
|
|
|
|
|
#[stable(feature = "rust1", since = "1.0.0")]
|
|
|
|
pub trait Stable {
|
2019-12-21 05:16:18 -06:00
|
|
|
#[unstable(feature = "unstable_test_feature", issue = "none")]
|
2016-04-26 12:51:14 -05:00
|
|
|
fn unstable(&self);
|
|
|
|
|
|
|
|
#[stable(feature = "rust1", since = "1.0.0")]
|
|
|
|
fn stable(&self);
|
|
|
|
}
|
|
|
|
|
|
|
|
impl Stable for usize {
|
|
|
|
fn unstable(&self) {}
|
|
|
|
fn stable(&self) {}
|
|
|
|
}
|
|
|
|
|
|
|
|
pub enum Unstable {
|
|
|
|
UnstableVariant,
|
|
|
|
#[stable(feature = "rust1", since = "1.0.0")]
|
|
|
|
StableVariant
|
|
|
|
}
|