2024-04-11 12:32:17 -05:00
|
|
|
//@ check-pass
|
2024-03-23 11:30:44 -05:00
|
|
|
// Check that we detect imports that are redundant due to the extern prelude
|
|
|
|
// and that we emit a reasonable diagnostic.
|
|
|
|
// issue: rust-lang/rust#121915
|
|
|
|
|
|
|
|
// See also the discussion in <https://github.com/rust-lang/rust/pull/122954>.
|
|
|
|
|
|
|
|
//@ compile-flags: --extern aux_issue_121915 --edition 2018
|
|
|
|
//@ aux-build: aux-issue-121915.rs
|
|
|
|
|
|
|
|
#[deny(unused_imports)]
|
|
|
|
fn main() {
|
|
|
|
use aux_issue_121915;
|
2024-04-11 12:32:17 -05:00
|
|
|
//FIXME(unused_imports): ~^ ERROR the item `aux_issue_121915` is imported redundantly
|
2024-03-23 11:30:44 -05:00
|
|
|
aux_issue_121915::item();
|
|
|
|
}
|