about summary refs log tree commit diff
path: root/tests/ui/privacy/pub-priv-dep/std-pub.rs
blob: 348e8d10735a34c93ffa16b8eb7374350dd74222 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// The 'std' crates should always be implicitly public,
// without having to pass any compiler arguments

//@ run-pass

#![deny(exported_private_dependencies)]

pub struct PublicType {
    pub field: Option<u8>
}

fn main() {}