Auto merge of #145504 - Jules-Bertholet:more_conversion_trait_impls, … · rust-lang/rust@0498c15 (original) (raw)

Original file line number Diff line number Diff line change
@@ -5,15 +5,15 @@ LL | let _: &[i8] = data.into();
5 5 | ^^^^ the trait `From<&[u8]>` is not implemented for `&[i8]`
6 6 |
7 7 = help: the following other types implement trait `From`:
8 + `[MaybeUninit; N]` implements `From<MaybeUninit<[T; N]>>`
8 9 `[T; 10]` implements `From<(T, T, T, T, T, T, T, T, T, T)>`
9 10 `[T; 11]` implements `From<(T, T, T, T, T, T, T, T, T, T, T)>`
10 11 `[T; 12]` implements `From<(T, T, T, T, T, T, T, T, T, T, T, T)>`
11 12 `[T; 1]` implements `From<(T,)>`
12 13 `[T; 2]` implements `From<(T, T)>`
13 14 `[T; 3]` implements `From<(T, T, T)>`
14 15 `[T; 4]` implements `From<(T, T, T, T)>`
15 - `[T; 5]` implements `From<(T, T, T, T, T)>`
16 - and 6 others
16 + and 7 others
17 17 = note: required for `&[u8]` to implement `Into<&[i8]>`
18 18
19 19 error: aborting due to 1 previous error