Add test for 'std' crate being public

This commit is contained in:
Aaron Hill 2019-01-13 22:33:06 -05:00
parent d60214cdf7
commit bc2221f7b6
No known key found for this signature in database
GPG Key ID: B4087E510E98B164
1 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,13 @@
// The 'std' crates should always be implicitly public,
// without having to pass any compiler arguments
// run-pass
#![feature(public_private_dependencies)]
#![deny(external_private_dependency)]
pub struct PublicType {
pub field: Option<u8>
}
fn main() {}