mirror of https://github.com/rust-lang/rust
15 lines
492 B
Rust
15 lines
492 B
Rust
#![stable(feature = "a", since = "3.3.3")]
|
|
//~^ 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 = "3.3.3")]
|
|
//~^ ERROR stability attributes may not be used outside of the standard library
|
|
pub fn f() -> inner_private_module::UnnameableTypeAlias {
|
|
0
|
|
}
|
|
|
|
fn main() {}
|