summaryrefslogtreecommitdiffstats
path: root/tests/ui/unused-crate-deps/use_extern_crate_2015.rs
blob: f15c87fa0b2499647edd82dcd7879dd7b0716863 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// Suppress by using crate

// edition:2015
// check-pass
// aux-crate:bar=bar.rs

#![warn(unused_crate_dependencies)]

extern crate bar;

fn main() {
    println!("bar {}", bar::BAR);
}