From 698f8c2f01ea549d77d7dc3338a12e04c11057b9 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 17 Apr 2024 14:02:58 +0200 Subject: Adding upstream version 1.64.0+dfsg1. Signed-off-by: Daniel Baumann --- src/test/ui/imports/issue-26886.stderr | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 src/test/ui/imports/issue-26886.stderr (limited to 'src/test/ui/imports/issue-26886.stderr') diff --git a/src/test/ui/imports/issue-26886.stderr b/src/test/ui/imports/issue-26886.stderr new file mode 100644 index 000000000..e2b925ec5 --- /dev/null +++ b/src/test/ui/imports/issue-26886.stderr @@ -0,0 +1,24 @@ +error[E0252]: the name `Arc` is defined multiple times + --> $DIR/issue-26886.rs:2:5 + | +LL | use std::sync::{self, Arc}; + | --- previous import of the type `Arc` here +LL | use std::sync::Arc; + | ^^^^^^^^^^^^^^ `Arc` reimported here + | + = note: `Arc` must be defined only once in the type namespace of this module + +error[E0252]: the name `sync` is defined multiple times + --> $DIR/issue-26886.rs:4:5 + | +LL | use std::sync::{self, Arc}; + | ---- previous import of the module `sync` here +... +LL | use std::sync; + | ^^^^^^^^^ `sync` reimported here + | + = note: `sync` must be defined only once in the type namespace of this module + +error: aborting due to 2 previous errors + +For more information about this error, try `rustc --explain E0252`. -- cgit v1.2.3