Skip to content

Commit a05bfc6

Browse files
committed
Test allowing individual struct field
1 parent 48ec29d commit a05bfc6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/test/ui/privacy/pub-priv-dep/pub-priv1.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,11 @@ pub trait MyPubTrait {
3939
//~^^^ ERROR trait `priv_dep::OtherTrait` from private dependency 'priv_dep' in public interface
4040
//~| WARNING this was previously accepted
4141

42+
pub struct AllowedPrivType {
43+
#[allow(exported_private_dependencies)]
44+
pub allowed: OtherType
45+
}
46+
47+
4248

4349
fn main() {}

0 commit comments

Comments
 (0)