]> git.proxmox.com Git - rustc.git/blame - src/test/ui/definition-reachable/private-types.rs
Update unsuspicious file list
[rustc.git] / src / test / ui / definition-reachable / private-types.rs
CommitLineData
416331ca
XL
1// Check that type privacy is taken into account when considering reachability
2
3// check-pass
4
5#![feature(decl_macro, staged_api)]
6#![stable(feature = "test", since = "1.0.0")]
7
8// Type privacy should prevent use of these in other crates, so we shouldn't
9// need a stability annotation.
10fn private_function() {}
11struct PrivateStruct { f: () }
12enum PrivateEnum { V }
13union PrivateUnion { g: () }
14trait PrivateTrait {}
15
16#[stable(feature = "test", since = "1.0.0")]
17pub macro m() {}
18
19fn main() {}