rust/tests/ui/privacy/pub-priv-dep/priv-dep-issue-122756.rs

13 lines
376 B
Rust

//@ aux-build: bar.rs
//@ aux-build: foo.rs
//@ build-pass
#![deny(exported_private_dependencies)]
// Ensure the libbar.rlib is loaded first. If the command line parameter `--extern foo` does not
// exist, previus version would fail to compile
#![crate_type = "rlib"]
extern crate bar;
extern crate foo;
pub fn baz() -> (Option<foo::Foo>, Option<bar::Bar>) { (None, None) }