summaryrefslogtreecommitdiffstats
path: root/tests/ui/feature-gates/feature-gate-staged_api.rs
blob: 2571ab5d1b4e1cd22be02fc6d90242bfeace30ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#![stable(feature = "a", since = "b")]
//~^ ERROR stability attributes may not be used outside of the standard library
mod inner_private_module {
    // UnnameableTypeAlias isn't marked as reachable, so no stability annotation is required here
    pub type UnnameableTypeAlias = u8;
}

#[stable(feature = "a", since = "b")]
//~^ ERROR stability attributes may not be used outside of the standard library
pub fn f() -> inner_private_module::UnnameableTypeAlias {
    0
}

fn main() {}