]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/match_ice.stderr
check_match: refactor + improve non-exhaustive diag for default binding modes.
[rust.git] / src / test / ui / consts / match_ice.stderr
1 error: 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    |
4 LL |         C => {}
5    |         ^
6
7 error[E0004]: non-exhaustive patterns: `&T` not covered
8   --> $DIR/match_ice.rs:15:11
9    |
10 LL | struct T;
11    | --------- `T` defined here
12 ...
13 LL |     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
18 error: aborting due to 2 previous errors
19
20 For more information about this error, try `rustc --explain E0004`.