rust/tests/ui/unused-crate-deps/use_extern_crate_2015.rs

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

14 lines
190 B
Rust
Raw Normal View History

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