aboutsummaryrefslogtreecommitdiff
path: root/tests/ui/enum_match_without_wildcard.stderr
blob: 5808d6f8fd7eecde0beff7aece1dbb6156fd0c92 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
error[E0004]: non-exhaustive patterns: `ffi::A { repr: 2_u8..=u8::MAX }` not covered
  --> tests/ui/enum_match_without_wildcard.rs:12:11
   |
12 |     match a {
   |           ^ pattern `ffi::A { repr: 2_u8..=u8::MAX }` not covered
   |
note: `ffi::A` defined here
  --> tests/ui/enum_match_without_wildcard.rs:3:10
   |
3  |     enum A {
   |          ^
   = note: the matched value is of type `ffi::A`
help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
   |
14 ~         ffi::A::FieldB => 2021,
15 ~         ffi::A { repr: 2_u8..=u8::MAX } => todo!(),
   |