2024-02-16 20:02:50 +00:00
|
|
|
//@ aux-crate:priv:somedep=somedep.rs
|
|
|
|
|
//@ compile-flags: -Zunstable-options --extern somedep
|
|
|
|
|
//@ edition:2018
|
2019-12-05 14:43:53 -08:00
|
|
|
|
|
|
|
|
#![deny(exported_private_dependencies)]
|
|
|
|
|
|
|
|
|
|
// Having a flag with `priv` and one without, will remain private (it is sticky).
|
|
|
|
|
|
|
|
|
|
pub struct PublicType {
|
|
|
|
|
pub field: somedep::S, //~ ERROR from private dependency
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fn main() {}
|