about summary refs log tree commit diff
path: root/src/test/ui/ufcs
diff options
context:
space:
mode:
authorEsteban Kuber <esteban@kuber.com.ar>2022-03-27 01:49:01 +0000
committerEsteban Kuber <esteban@kuber.com.ar>2022-04-04 21:06:35 +0000
commitef91519b45d2bbf0ce8c0180118160562eaaa0ca (patch)
treeab798e750270dc35abaadabf38e6946025faf9b8 /src/test/ui/ufcs
parente2bba0708a1e4b0c21f94de56c2bd5d66d3b825f (diff)
downloadrust-ef91519b45d2bbf0ce8c0180118160562eaaa0ca.tar.gz
rust-ef91519b45d2bbf0ce8c0180118160562eaaa0ca.zip
Dedup logic and improve output for other types that impl trait
Diffstat (limited to 'src/test/ui/ufcs')
-rw-r--r--src/test/ui/ufcs/ufcs-qpath-self-mismatch.stderr10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/test/ui/ufcs/ufcs-qpath-self-mismatch.stderr b/src/test/ui/ufcs/ufcs-qpath-self-mismatch.stderr
index 64da15c5055..09208527210 100644
--- a/src/test/ui/ufcs/ufcs-qpath-self-mismatch.stderr
+++ b/src/test/ui/ufcs/ufcs-qpath-self-mismatch.stderr
@@ -5,15 +5,15 @@ LL |     <i32 as Add<u32>>::add(1, 2);
    |     ^^^^^^^^^^^^^^^^^^^^^^ no implementation for `i32 + u32`
    |
    = help: the trait `Add<u32>` is not implemented for `i32`
-   = help: the following implementations were found:
-             <&'a i32 as Add<i32>>
-             <&i32 as Add<&i32>>
-             <i32 as Add<&i32>>
-             <i32 as Add>
+   = help: the following other types implement trait `Add`:
              <&'a f32 as Add<f32>>
              <&'a f64 as Add<f64>>
              <&'a i128 as Add<i128>>
              <&'a i16 as Add<i16>>
+             <&'a i32 as Add<i32>>
+             <&'a i64 as Add<i64>>
+             <&'a i8 as Add<i8>>
+             <&'a isize as Add<isize>>
            and 48 others
 
 error[E0308]: mismatched types