File: enum_match_without_wildcard.stderr

package info (click to toggle)
rust-cxx 1.0.141-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,632 kB
  • sloc: cpp: 1,573; javascript: 124; sh: 11; makefile: 8
file content (17 lines) | stat: -rw-r--r-- 641 bytes parent folder | download | duplicates (9)
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!(),
   |