1 error[E0005]: refutable pattern in local binding
2 --> $DIR/const-pattern-irrefutable.rs:12:9
5 | ----------- constant defined here
10 | patterns `0_u8..=1_u8` and `3_u8..=u8::MAX` not covered
11 | missing patterns are not covered because `a` is interpreted as a constant pattern, not a new variable
12 | help: introduce a variable instead: `a_var`
14 = note: the matched value is of type `u8`
16 error[E0005]: refutable pattern in local binding
17 --> $DIR/const-pattern-irrefutable.rs:17:9
19 LL | pub const b: u8 = 2;
20 | --------------- constant defined here
25 | patterns `0_u8..=1_u8` and `3_u8..=u8::MAX` not covered
26 | missing patterns are not covered because `c` is interpreted as a constant pattern, not a new variable
27 | help: introduce a variable instead: `c_var`
29 = note: the matched value is of type `u8`
31 error[E0005]: refutable pattern in local binding
32 --> $DIR/const-pattern-irrefutable.rs:22:9
34 LL | pub const d: u8 = 2;
35 | --------------- constant defined here
40 | patterns `0_u8..=1_u8` and `3_u8..=u8::MAX` not covered
41 | missing patterns are not covered because `d` is interpreted as a constant pattern, not a new variable
42 | help: introduce a variable instead: `d_var`
44 = note: the matched value is of type `u8`
46 error: aborting due to 3 previous errors
48 For more information about this error, try `rustc --explain E0005`.