os-rust/tests/ui/suggestions/const-pat-non-exaustive-let-new-var.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

9 lines
262 B
Rust
Raw Normal View History

fn main() {
let A = 3;
2022-12-23 21:02:23 +01:00
//~^ ERROR refutable pattern in local binding
//~| patterns `i32::MIN..=1_i32` and `3_i32..=i32::MAX` not covered
2023-02-27 17:43:39 +00:00
//~| HELP you might want to use `if let` to ignore the variants that aren't matched
const A: i32 = 2;
}