fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
968 B25 linesraw
1error[E0277]: can't compare `&[u8; 1]` with `[{integer}; 1]`
2  --> $DIR/issue-113447.rs:24:20
3   |
4LL |     let _ = &[0u8] == [0xAA];
5   |                    ^^ no implementation for `&[u8; 1] == [{integer}; 1]`
6   |
7   = help: the trait `PartialEq<[{integer}; 1]>` is not implemented for `&[u8; 1]`
8   = help: the following other types implement trait `PartialEq<Rhs>`:
9             <[A; N] as PartialEq<[B; N]>>
10             <[A; N] as PartialEq<[B]>>
11             <[A; N] as PartialEq<&[B]>>
12             <[A; N] as PartialEq<&mut [B]>>
13             <[T] as PartialEq<Vec<U, A>>>
14             <[A] as PartialEq<[B]>>
15             <[B] as PartialEq<[A; N]>>
16             <&[u8] as PartialEq<Bytes>>
17           and 4 others
18help: convert the array to a `&[u8]` slice instead
19   |
20LL |     let _ = &[0u8] == &[0xAA][..];
21   |                       +      ++++
22
23error: aborting due to previous error
24
25For more information about this error, try `rustc --explain E0277`.