fork/rust

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

borsAuto merge of #69854 - pietroalbini:stable-next, r=Centrilb8cedc00407

1.42.0
780 B26 linesraw
1error: to use a constant of type `S` in a pattern, `S` must be annotated with `#[derive(PartialEq, Eq)]`
2  --> $DIR/match_ice.rs:11:9
3   |
4LL |         C => {}
5   |         ^
6
7error[E0004]: non-exhaustive patterns: `&T` not covered
8  --> $DIR/match_ice.rs:16:11
9   |
10LL | struct T;
11   | --------- `T` defined here
12...
13LL |     match K {
14   |           ^ pattern `&T` not covered
15   |
16   = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
17
18error: to use a constant of type `S` in a pattern, `S` must be annotated with `#[derive(PartialEq, Eq)]`
19  --> $DIR/match_ice.rs:11:9
20   |
21LL |         C => {}
22   |         ^
23
24error: aborting due to 3 previous errors
25
26For more information about this error, try `rustc --explain E0004`.