]> git.lizzy.rs Git - rust.git/blob - src/test/ui/extern-flag/public-and-private.rs
Rollup merge of #90498 - joshtriplett:target-tier-policy-draft-updates, r=Mark-Simulacrum
[rust.git] / src / test / ui / extern-flag / public-and-private.rs
1 // aux-crate:priv:somedep=somedep.rs
2 // compile-flags: -Zunstable-options --extern somedep
3 // edition:2018
4
5 #![deny(exported_private_dependencies)]
6
7 // Having a flag with `priv` and one without, will remain private (it is sticky).
8
9 pub struct PublicType {
10     pub field: somedep::S, //~ ERROR from private dependency
11 }
12
13 fn main() {}