mirror of
https://github.com/rust-lang/rust
synced 2024-09-06 01:11:17 +00:00
14 lines
336 B
Rust
14 lines
336 B
Rust
//@ 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() {}
|