fork/rust
git clone https://git.julia.blue/fork/rust
73528e339aa
1.40.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 13error[E0005]: refutable pattern in local binding: `0u8..=1u8` and `3u8..=std::u8::MAX` not covered 14 --> $DIR/const-pattern-irrefutable.rs:13:9 15 | 16LL | pub const b: u8 = 2; 17 | -------------------- constant defined here 18... 19LL | let c = 4; 20 | ^ 21 | | 22 | interpreted as a constant pattern, not a new variable 23 | help: introduce a variable instead: `c_var` 24 25error[E0005]: refutable pattern in local binding: `0u8..=1u8` and `3u8..=std::u8::MAX` not covered 26 --> $DIR/const-pattern-irrefutable.rs:14:9 27 | 28LL | pub const d: u8 = 2; 29 | -------------------- constant defined here 30... 31LL | let d = 4; 32 | ^ 33 | | 34 | interpreted as a constant pattern, not a new variable 35 | help: introduce a variable instead: `d_var` 36 37error: aborting due to 3 previous errors 38 39For more information about this error, try `rustc --explain E0005`.