summaryrefslogtreecommitdiffstats
path: root/tests/ui/binop
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-30 03:57:31 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-30 03:57:31 +0000
commitdc0db358abe19481e475e10c32149b53370f1a1c (patch)
treeab8ce99c4b255ce46f99ef402c27916055b899ee /tests/ui/binop
parentReleasing progress-linux version 1.71.1+dfsg1-2~progress7.99u1. (diff)
downloadrustc-dc0db358abe19481e475e10c32149b53370f1a1c.tar.xz
rustc-dc0db358abe19481e475e10c32149b53370f1a1c.zip
Merging upstream version 1.72.1+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/ui/binop')
-rw-r--r--tests/ui/binop/binop-mul-i32-f32.stderr4
-rw-r--r--tests/ui/binop/shift-various-bad-types.stderr48
2 files changed, 26 insertions, 26 deletions
diff --git a/tests/ui/binop/binop-mul-i32-f32.stderr b/tests/ui/binop/binop-mul-i32-f32.stderr
index c986bc3fd..115e70006 100644
--- a/tests/ui/binop/binop-mul-i32-f32.stderr
+++ b/tests/ui/binop/binop-mul-i32-f32.stderr
@@ -6,10 +6,10 @@ LL | x * y
|
= help: the trait `Mul<f32>` is not implemented for `i32`
= help: the following other types implement trait `Mul<Rhs>`:
+ <i32 as Mul>
+ <i32 as Mul<&i32>>
<&'a i32 as Mul<i32>>
<&i32 as Mul<&i32>>
- <i32 as Mul<&i32>>
- <i32 as Mul>
error: aborting due to previous error
diff --git a/tests/ui/binop/shift-various-bad-types.stderr b/tests/ui/binop/shift-various-bad-types.stderr
index 38db66f86..b43672ef3 100644
--- a/tests/ui/binop/shift-various-bad-types.stderr
+++ b/tests/ui/binop/shift-various-bad-types.stderr
@@ -6,14 +6,14 @@ LL | 22 >> p.char;
|
= help: the trait `Shr<char>` is not implemented for `{integer}`
= help: the following other types implement trait `Shr<Rhs>`:
- <&'a i128 as Shr<i128>>
- <&'a i128 as Shr<i16>>
- <&'a i128 as Shr<i32>>
- <&'a i128 as Shr<i64>>
- <&'a i128 as Shr<i8>>
- <&'a i128 as Shr<isize>>
- <&'a i128 as Shr<u128>>
- <&'a i128 as Shr<u16>>
+ <isize as Shr>
+ <isize as Shr<i8>>
+ <isize as Shr<i16>>
+ <isize as Shr<i32>>
+ <isize as Shr<i64>>
+ <isize as Shr<i128>>
+ <isize as Shr<usize>>
+ <isize as Shr<u8>>
and 568 others
error[E0277]: no implementation for `{integer} >> &str`
@@ -24,14 +24,14 @@ LL | 22 >> p.str;
|
= help: the trait `Shr<&str>` is not implemented for `{integer}`
= help: the following other types implement trait `Shr<Rhs>`:
- <&'a i128 as Shr<i128>>
- <&'a i128 as Shr<i16>>
- <&'a i128 as Shr<i32>>
- <&'a i128 as Shr<i64>>
- <&'a i128 as Shr<i8>>
- <&'a i128 as Shr<isize>>
- <&'a i128 as Shr<u128>>
- <&'a i128 as Shr<u16>>
+ <isize as Shr>
+ <isize as Shr<i8>>
+ <isize as Shr<i16>>
+ <isize as Shr<i32>>
+ <isize as Shr<i64>>
+ <isize as Shr<i128>>
+ <isize as Shr<usize>>
+ <isize as Shr<u8>>
and 568 others
error[E0277]: no implementation for `{integer} >> &Panolpy`
@@ -42,14 +42,14 @@ LL | 22 >> p;
|
= help: the trait `Shr<&Panolpy>` is not implemented for `{integer}`
= help: the following other types implement trait `Shr<Rhs>`:
- <&'a i128 as Shr<i128>>
- <&'a i128 as Shr<i16>>
- <&'a i128 as Shr<i32>>
- <&'a i128 as Shr<i64>>
- <&'a i128 as Shr<i8>>
- <&'a i128 as Shr<isize>>
- <&'a i128 as Shr<u128>>
- <&'a i128 as Shr<u16>>
+ <isize as Shr>
+ <isize as Shr<i8>>
+ <isize as Shr<i16>>
+ <isize as Shr<i32>>
+ <isize as Shr<i64>>
+ <isize as Shr<i128>>
+ <isize as Shr<usize>>
+ <isize as Shr<u8>>
and 568 others
error[E0308]: mismatched types