Test allowing individual struct field
This commit is contained in:
parent
48ec29d38e
commit
a05bfc6aeb
1 changed files with 6 additions and 0 deletions
|
@ -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() {}
|
||||
|
|
Loading…
Add table
Reference in a new issue