summaryrefslogtreecommitdiffstats
path: root/tests/ui/extern-flag/public-and-private.rs
blob: a3a81cbf37223e6503abb4c0bd520bb40006eebb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// aux-crate:priv:somedep=somedep.rs
// compile-flags: -Zunstable-options --extern somedep
// edition:2018

#![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() {}