mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-24 07:44:10 +00:00
38 lines
917 B
Rust
38 lines
917 B
Rust
// aux-build:issue-52891.rs
|
|
// run-rustfix
|
|
|
|
#![allow(warnings)]
|
|
|
|
extern crate issue_52891;
|
|
|
|
// Check that we don't suggest renaming duplicate imports but instead
|
|
// suggest removing one.
|
|
|
|
use issue_52891::a;
|
|
//~ ERROR `a` is defined multiple times
|
|
|
|
use issue_52891::{b, c}; //~ ERROR `a` is defined multiple times
|
|
use issue_52891::{d, e}; //~ ERROR `a` is defined multiple times
|
|
use issue_52891::{f, g}; //~ ERROR `a` is defined multiple times
|
|
|
|
use issue_52891::{//~ ERROR `a` is defined multiple times
|
|
h,
|
|
i};
|
|
use issue_52891::{j,
|
|
//~ ERROR `a` is defined multiple times
|
|
k};
|
|
use issue_52891::{l,
|
|
m}; //~ ERROR `a` is defined multiple times
|
|
|
|
use issue_52891::a::inner;
|
|
use issue_52891::b::inner as other_inner; //~ ERROR `inner` is defined multiple times
|
|
|
|
|
|
//~^ ERROR `issue_52891` is defined multiple times
|
|
|
|
|
|
#[macro_use]
|
|
use issue_52891::n; //~ ERROR `n` is defined multiple times
|
|
|
|
fn main() {}
|