]> git.lizzy.rs Git - rust.git/blob - src/test/ui/feature-gates/feature-gate-staged_api.rs
parser will not give wrong help message for 'public'
[rust.git] / src / test / ui / feature-gates / feature-gate-staged_api.rs
1 #![stable(feature = "a", since = "b")]
2 //~^ ERROR stability attributes may not be used outside of the standard library
3 mod inner_private_module {
4     // UnnameableTypeAlias isn't marked as reachable, so no stability annotation is required here
5     pub type UnnameableTypeAlias = u8;
6 }
7
8 #[stable(feature = "a", since = "b")]
9 //~^ ERROR stability attributes may not be used outside of the standard library
10 pub fn f() -> inner_private_module::UnnameableTypeAlias {
11     0
12 }
13
14 fn main() {}