fork/rust
git clone https://git.julia.blue/fork/rust
49cae55760d
1.44.0
1error[E0005]: refutable pattern in local binding: `std::i32::MIN..=-1i32` and `3i32..=std::i32::MAX` not covered 2 --> $DIR/issue-69875-should-have-been-expanded-earlier-non-exhaustive.rs:4:9 3 | 4LL | let 0 | (1 | 2) = 0; 5 | ^^^^^^^^^^^ patterns `std::i32::MIN..=-1i32` and `3i32..=std::i32::MAX` not covered 6 | 7 = note: `let` bindings require an "irrefutable pattern", like a `struct` or an `enum` with only one variant 8 = note: for more information, visit https://doc.rust-lang.org/book/ch18-02-refutability.html 9 = note: the matched value is of type `i32` 10help: you might want to use `if let` to ignore the variant that isn't matched 11 | 12LL | if let 0 | (1 | 2) = 0 { /* */ } 13 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14 15error[E0004]: non-exhaustive patterns: `std::i32::MIN..=-1i32` and `3i32..=std::i32::MAX` not covered 16 --> $DIR/issue-69875-should-have-been-expanded-earlier-non-exhaustive.rs:5:11 17 | 18LL | match 0 { 19 | ^ patterns `std::i32::MIN..=-1i32` and `3i32..=std::i32::MAX` not covered 20 | 21 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms 22 = note: the matched value is of type `i32` 23 24error: aborting due to 2 previous errors 25 26Some errors have detailed explanations: E0004, E0005. 27For more information about an error, try `rustc --explain E0004`.