rust/tests/ui/privacy/pub-priv-dep/reexport_from_priv.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
350 B
Rust
Raw Normal View History

//@ aux-crate:priv:reexport=reexport.rs
//@ compile-flags: -Zunstable-options
//@ check-pass
// Checks the behavior of a reexported item from a private dependency.
#![crate_type = "lib"]
#![deny(exported_private_dependencies)]
extern crate reexport;
// FIXME: This should trigger.
pub fn leaks_priv() -> reexport::Shared {
reexport::Shared
}