]> git.lizzy.rs Git - rust.git/blob - src/test/ui/reachable-unnameable-type-alias.rs
Add 'library/portable-simd/' from commit '1ce1c645cf27c4acdefe6ec8a11d1f0491954a99'
[rust.git] / src / test / ui / reachable-unnameable-type-alias.rs
1 // run-pass
2
3 #![feature(staged_api)]
4 #![stable(feature = "a", since = "b")]
5
6 mod inner_private_module {
7     // UnnameableTypeAlias isn't marked as reachable, so no stability annotation is required here
8     pub type UnnameableTypeAlias = u8;
9 }
10
11 #[stable(feature = "a", since = "b")]
12 pub fn f() -> inner_private_module::UnnameableTypeAlias {
13     0
14 }
15
16 fn main() {}