We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 04305c0 commit 36f8693Copy full SHA for 36f8693
tests/ui/issues/issue-32709.stderr
@@ -7,9 +7,16 @@ LL | Err(5)?;
7
| ^ the trait `From<{integer}>` is not implemented for `()`
8
|
9
= note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait
10
- = help: the following other types implement trait `FromResidual<R>`:
11
- <Result<T, F> as FromResidual<Result<Infallible, E>>>
12
- <Result<T, F> as FromResidual<Yeet<E>>>
+ = help: the following other types implement trait `From<T>`:
+ <(T, T) as From<[T; 2]>>
+ <(T, T, T) as From<[T; 3]>>
13
+ <(T, T, T, T) as From<[T; 4]>>
14
+ <(T, T, T, T, T) as From<[T; 5]>>
15
+ <(T, T, T, T, T, T) as From<[T; 6]>>
16
+ <(T, T, T, T, T, T, T) as From<[T; 7]>>
17
+ <(T, T, T, T, T, T, T, T) as From<[T; 8]>>
18
+ <(T, T, T, T, T, T, T, T, T) as From<[T; 9]>>
19
+ and 4 others
20
= note: required for `Result<i32, ()>` to implement `FromResidual<Result<Infallible, {integer}>>`
21
22
error: aborting due to previous error
tests/ui/suggestions/issue-71394-no-from-impl.stderr
@@ -6,8 +6,14 @@ LL | let _: &[i8] = data.into();
6
= help: the following other types implement trait `From<T>`:
<&'input [u8] as From<gimli::read::endian_slice::EndianSlice<'input, Endian>>>
- <[T; LANES] as From<Simd<T, LANES>>>
- <[bool; LANES] as From<Mask<T, LANES>>>
+ <[T; 10] as From<(T, T, T, T, T, T, T, T, T, T)>>
+ <[T; 11] as From<(T, T, T, T, T, T, T, T, T, T, T)>>
+ <[T; 12] as From<(T, T, T, T, T, T, T, T, T, T, T, T)>>
+ <[T; 1] as From<(T,)>>
+ <[T; 2] as From<(T, T)>>
+ <[T; 3] as From<(T, T, T)>>
+ <[T; 4] as From<(T, T, T, T)>>
+ and 7 others
= note: required for `&[u8]` to implement `Into<&[i8]>`
0 commit comments