diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 12:02:58 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 12:02:58 +0000 |
commit | 698f8c2f01ea549d77d7dc3338a12e04c11057b9 (patch) | |
tree | 173a775858bd501c378080a10dca74132f05bc50 /src/test/ui/imports/issue-24081.stderr | |
parent | Initial commit. (diff) | |
download | rustc-698f8c2f01ea549d77d7dc3338a12e04c11057b9.tar.xz rustc-698f8c2f01ea549d77d7dc3338a12e04c11057b9.zip |
Adding upstream version 1.64.0+dfsg1.upstream/1.64.0+dfsg1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/test/ui/imports/issue-24081.stderr')
-rw-r--r-- | src/test/ui/imports/issue-24081.stderr | 78 |
1 files changed, 78 insertions, 0 deletions
diff --git a/src/test/ui/imports/issue-24081.stderr b/src/test/ui/imports/issue-24081.stderr new file mode 100644 index 000000000..e5ed6b10a --- /dev/null +++ b/src/test/ui/imports/issue-24081.stderr @@ -0,0 +1,78 @@ +error[E0255]: the name `Add` is defined multiple times + --> $DIR/issue-24081.rs:7:1 + | +LL | use std::ops::Add; + | ------------- previous import of the trait `Add` here +... +LL | type Add = bool; + | ^^^^^^^^^^^^^^^^ `Add` redefined here + | + = note: `Add` must be defined only once in the type namespace of this module +help: you can use `as` to change the binding name of the import + | +LL | use std::ops::Add as OtherAdd; + | ~~~~~~~~~~~~~~~~~~~~~~~~~ + +error[E0255]: the name `Sub` is defined multiple times + --> $DIR/issue-24081.rs:9:1 + | +LL | use std::ops::Sub; + | ------------- previous import of the trait `Sub` here +... +LL | struct Sub { x: f32 } + | ^^^^^^^^^^ `Sub` redefined here + | + = note: `Sub` must be defined only once in the type namespace of this module +help: you can use `as` to change the binding name of the import + | +LL | use std::ops::Sub as OtherSub; + | ~~~~~~~~~~~~~~~~~~~~~~~~~ + +error[E0255]: the name `Mul` is defined multiple times + --> $DIR/issue-24081.rs:11:1 + | +LL | use std::ops::Mul; + | ------------- previous import of the trait `Mul` here +... +LL | enum Mul { A, B } + | ^^^^^^^^ `Mul` redefined here + | + = note: `Mul` must be defined only once in the type namespace of this module +help: you can use `as` to change the binding name of the import + | +LL | use std::ops::Mul as OtherMul; + | ~~~~~~~~~~~~~~~~~~~~~~~~~ + +error[E0255]: the name `Div` is defined multiple times + --> $DIR/issue-24081.rs:13:1 + | +LL | use std::ops::Div; + | ------------- previous import of the trait `Div` here +... +LL | mod Div { } + | ^^^^^^^ `Div` redefined here + | + = note: `Div` must be defined only once in the type namespace of this module +help: you can use `as` to change the binding name of the import + | +LL | use std::ops::Div as OtherDiv; + | ~~~~~~~~~~~~~~~~~~~~~~~~~ + +error[E0255]: the name `Rem` is defined multiple times + --> $DIR/issue-24081.rs:15:1 + | +LL | use std::ops::Rem; + | ------------- previous import of the trait `Rem` here +... +LL | trait Rem { } + | ^^^^^^^^^ `Rem` redefined here + | + = note: `Rem` must be defined only once in the type namespace of this module +help: you can use `as` to change the binding name of the import + | +LL | use std::ops::Rem as OtherRem; + | ~~~~~~~~~~~~~~~~~~~~~~~~~ + +error: aborting due to 5 previous errors + +For more information about this error, try `rustc --explain E0255`. |