summaryrefslogtreecommitdiffstats
path: root/tests/ui/pattern/usefulness/auxiliary/unstable.rs
blob: a06b3a6e4e5abbd07dce48c05309d979cb53f417 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#![feature(staged_api)]
#![stable(feature = "stable_test_feature", since = "1.0.0")]

#[stable(feature = "stable_test_feature", since = "1.0.0")]
pub enum UnstableEnum {
    #[stable(feature = "stable_test_feature", since = "1.0.0")]
    Stable,
    #[stable(feature = "stable_test_feature", since = "1.0.0")]
    Stable2,
    #[unstable(feature = "unstable_test_feature", issue = "none")]
    Unstable,
}

#[derive(Default)]
#[stable(feature = "stable_test_feature", since = "1.0.0")]
pub struct UnstableStruct {
    #[stable(feature = "stable_test_feature", since = "1.0.0")]
    pub stable: bool,
    #[stable(feature = "stable_test_feature", since = "1.0.0")]
    pub stable2: usize,
    #[unstable(feature = "unstable_test_feature", issue = "none")]
    pub unstable: u8,
}