]> git.lizzy.rs Git - rust.git/blob - src/test/ui/definition-reachable/private-non-types.rs
Merge commit '6ed6f1e6a1a8f414ba7e6d9b8222e7e5a1686e42' into clippyup
[rust.git] / src / test / ui / definition-reachable / private-non-types.rs
1 // Check that we don't require stability annotations for private modules,
2 // imports and fields that are accessible to opaque macros.
3
4 // check-pass
5
6 #![feature(decl_macro, staged_api)]
7 #![stable(feature = "test", since = "1.0.0")]
8
9 extern crate std as local_std;
10 use local_std::marker::Copy as LocalCopy;
11 mod private_mod {
12     #[stable(feature = "test", since = "1.0.0")]
13     pub struct A {
14         pub(crate) f: i32,
15     }
16 }
17
18 #[stable(feature = "test", since = "1.0.0")]
19 pub macro m() {}
20
21 fn main() {}