diff options
| author | Yuki Okushi <huyuumi.dev+love@gmail.com> | 2022-12-06 12:48:54 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-12-06 12:48:54 +0900 |
| commit | 1310d9bd2b9283fa311b8706b2bca59a4dff63d5 (patch) | |
| tree | 8ad3b73acdf2d7b239ce2db45401a9418845926c /src/test/ui/const-generics | |
| parent | e09c71e4c127e4a0fd6644a56ef06a7a0377a215 (diff) | |
| parent | e1649c442f47a8b9d071b5bcca20684b70b393d4 (diff) | |
| download | rust-1310d9bd2b9283fa311b8706b2bca59a4dff63d5.tar.gz rust-1310d9bd2b9283fa311b8706b2bca59a4dff63d5.zip | |
Rollup merge of #105338 - estebank:other-impls, r=compiler-errors
Tweak "the following other types implement trait" When *any* of the suggested impls is an exact match, *only* show the exact matches. This is particularly relevant for integer types. r? `@compiler-errors`
Diffstat (limited to 'src/test/ui/const-generics')
| -rw-r--r-- | src/test/ui/const-generics/defaults/rp_impl_trait_fail.stderr | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/test/ui/const-generics/defaults/rp_impl_trait_fail.stderr b/src/test/ui/const-generics/defaults/rp_impl_trait_fail.stderr index f2e7777ce68..a46bd53520b 100644 --- a/src/test/ui/const-generics/defaults/rp_impl_trait_fail.stderr +++ b/src/test/ui/const-generics/defaults/rp_impl_trait_fail.stderr @@ -18,9 +18,7 @@ LL | LL | 1_u32 | ----- return type was inferred to be `u32` here | - = help: the following other types implement trait `Traitor<N, M>`: - <u32 as Traitor<N, 2>> - <u64 as Traitor<1, 2>> + = help: the trait `Traitor<N, 2>` is implemented for `u32` error[E0277]: the trait bound `u64: Traitor` is not satisfied --> $DIR/rp_impl_trait_fail.rs:21:13 @@ -31,9 +29,7 @@ LL | LL | 1_u64 | ----- return type was inferred to be `u64` here | - = help: the following other types implement trait `Traitor<N, M>`: - <u32 as Traitor<N, 2>> - <u64 as Traitor<1, 2>> + = help: the trait `Traitor<1, 2>` is implemented for `u64` error: aborting due to 3 previous errors |
