rust/tests/ui/unused-crate-deps/test-use-ok.rs

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

16 lines
210 B
Rust
Raw Normal View History

// 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");
}