summaryrefslogtreecommitdiffstats
path: root/src/test/ui/stability-attribute/auxiliary/allowed-through-unstable-core.rs
blob: b597009a309c97cfdcd62fbcf7c801339e0f85bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#![crate_type = "lib"]
#![feature(staged_api)]
#![feature(rustc_attrs)]
#![stable(feature = "stable_test_feature", since = "1.2.0")]

#[unstable(feature = "unstable_test_feature", issue = "1")]
pub mod unstable_module {
    #[stable(feature = "stable_test_feature", since = "1.2.0")]
    #[rustc_allowed_through_unstable_modules]
    pub trait OldStableTraitAllowedThoughUnstable {}

    #[stable(feature = "stable_test_feature", since = "1.2.0")]
    pub trait NewStableTraitNotAllowedThroughUnstable {}
}