Skip to content

Commit bc2221f

Browse files
committed
Add test for 'std' crate being public
1 parent d60214c commit bc2221f

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// The 'std' crates should always be implicitly public,
2+
// without having to pass any compiler arguments
3+
4+
// run-pass
5+
6+
#![feature(public_private_dependencies)]
7+
#![deny(external_private_dependency)]
8+
9+
pub struct PublicType {
10+
pub field: Option<u8>
11+
}
12+
13+
fn main() {}

0 commit comments

Comments
 (0)