about summary refs log tree commit diff
path: root/tests/ui/stability-attribute/auxiliary/allowed-through-unstable-core.rs
blob: 23c722d6e8eba56d139b86f544171f6d79f7387d (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 = "use the new path instead"]
    pub trait OldStableTraitAllowedThoughUnstable {}

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