Test allowing individual struct field

This commit is contained in:
Aaron Hill 2019-01-30 15:37:27 -05:00
parent 48ec29d38e
commit a05bfc6aeb
No known key found for this signature in database
GPG key ID: B4087E510E98B164

View file

@ -39,5 +39,11 @@ pub trait MyPubTrait {
//~^^^ ERROR trait `priv_dep::OtherTrait` from private dependency 'priv_dep' in public interface
//~| WARNING this was previously accepted
pub struct AllowedPrivType {
#[allow(exported_private_dependencies)]
pub allowed: OtherType
}
fn main() {}