mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 23:04:33 +00:00
16 lines
214 B
Rust
16 lines
214 B
Rust
// Test-only use OK
|
|
|
|
//@ edition:2018
|
|
//@ check-pass
|
|
//@ aux-crate:bar=bar.rs
|
|
//@ compile-flags:--test
|
|
|
|
#![deny(unused_crate_dependencies)]
|
|
|
|
fn main() {}
|
|
|
|
#[test]
|
|
fn test_bar() {
|
|
assert_eq!(bar::BAR, "bar");
|
|
}
|