fork/rust
git clone https://git.julia.blue/fork/rust
49cae55760d
1.44.0
1error[E0005]: refutable pattern in local binding: `0u8..=1u8` and `3u8..=std::u8::MAX` not covered 2 --> $DIR/const-pattern-irrefutable.rs:12:9 3 | 4LL | const a: u8 = 2; 5 | ---------------- constant defined here 6... 7LL | let a = 4; 8 | ^ 9 | | 10 | interpreted as a constant pattern, not a new variable 11 | help: introduce a variable instead: `a_var` 12 | 13 = note: the matched value is of type `u8` 14 15error[E0005]: refutable pattern in local binding: `0u8..=1u8` and `3u8..=std::u8::MAX` not covered 16 --> $DIR/const-pattern-irrefutable.rs:13:9 17 | 18LL | pub const b: u8 = 2; 19 | -------------------- constant defined here 20... 21LL | let c = 4; 22 | ^ 23 | | 24 | interpreted as a constant pattern, not a new variable 25 | help: introduce a variable instead: `c_var` 26 | 27 = note: the matched value is of type `u8` 28 29error[E0005]: refutable pattern in local binding: `0u8..=1u8` and `3u8..=std::u8::MAX` not covered 30 --> $DIR/const-pattern-irrefutable.rs:14:9 31 | 32LL | pub const d: u8 = 2; 33 | -------------------- constant defined here 34... 35LL | let d = 4; 36 | ^ 37 | | 38 | interpreted as a constant pattern, not a new variable 39 | help: introduce a variable instead: `d_var` 40 | 41 = note: the matched value is of type `u8` 42 43error: aborting due to 3 previous errors 44 45For more information about this error, try `rustc --explain E0005`.