rust/tests/ui/unused-crate-deps/unused-aliases.rs
2023-01-11 09:32:08 +00:00

14 lines
238 B
Rust

// Warn about unused aliased for the crate
// edition:2018
// check-pass
// aux-crate:bar=bar.rs
// aux-crate:barbar=bar.rs
#![warn(unused_crate_dependencies)]
//~^ WARNING external crate `barbar` unused in
use bar as _;
fn main() {}