rust/tests/ui/unused-crate-deps/unused-aliases.rs
2024-06-03 07:25:32 +02:00

14 lines
243 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 extern crate `barbar` is unused in
use bar as _;
fn main() {}