1 error[E0005]: refutable pattern in local binding: `0_u8..=1_u8` and `3_u8..=u8::MAX` not covered
2 --> $DIR/const-pattern-irrefutable.rs:12:9
5 | ----------- constant defined here
10 | interpreted as a constant pattern, not a new variable
11 | help: introduce a variable instead: `a_var`
13 = note: the matched value is of type `u8`
15 error[E0005]: refutable pattern in local binding: `0_u8..=1_u8` and `3_u8..=u8::MAX` not covered
16 --> $DIR/const-pattern-irrefutable.rs:13:9
18 LL | pub const b: u8 = 2;
19 | --------------- constant defined here
24 | interpreted as a constant pattern, not a new variable
25 | help: introduce a variable instead: `c_var`
27 = note: the matched value is of type `u8`
29 error[E0005]: refutable pattern in local binding: `0_u8..=1_u8` and `3_u8..=u8::MAX` not covered
30 --> $DIR/const-pattern-irrefutable.rs:14:9
32 LL | pub const d: u8 = 2;
33 | --------------- constant defined here
38 | interpreted as a constant pattern, not a new variable
39 | help: introduce a variable instead: `d_var`
41 = note: the matched value is of type `u8`
43 error: aborting due to 3 previous errors
45 For more information about this error, try `rustc --explain E0005`.