mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-04 12:44:40 +00:00
13 lines
376 B
Rust
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) }
|