Add test for 'std' crate being public
This commit is contained in:
parent
d60214cdf7
commit
bc2221f7b6
|
@ -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() {}
|
Loading…
Reference in New Issue