summaryrefslogtreecommitdiffstats
path: root/tests/ui/unused-crate-deps/test-use-ok.rs
blob: 66d6440c9cb9fb9f332af2cdac0e14fdbffd3ecf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// 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");
}