diff options
Diffstat (limited to 'tests/ui/privacy/pub-priv-dep/std-pub.rs')
-rw-r--r-- | tests/ui/privacy/pub-priv-dep/std-pub.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/ui/privacy/pub-priv-dep/std-pub.rs b/tests/ui/privacy/pub-priv-dep/std-pub.rs new file mode 100644 index 000000000..e25aa93a0 --- /dev/null +++ b/tests/ui/privacy/pub-priv-dep/std-pub.rs @@ -0,0 +1,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() {} |