rust/tests/ui/imports/redundant-import-issue-121915-2015.rs

12 lines
292 B
Rust
Raw Normal View History

//@ compile-flags: --extern aux_issue_121915 --edition 2015
//@ aux-build: aux-issue-121915.rs
extern crate aux_issue_121915;
2024-04-11 13:10:34 -05:00
#[deny(redundant_imports)]
fn main() {
use aux_issue_121915;
2024-04-11 13:10:34 -05:00
//~^ ERROR the item `aux_issue_121915` is imported redundantly
aux_issue_121915::item();
}