2019-09-27 19:30:48 -05:00
|
|
|
fn main() {
|
|
|
|
let A = 3;
|
2022-12-23 14:02:23 -06:00
|
|
|
//~^ ERROR refutable pattern in local binding
|
|
|
|
//~| patterns `i32::MIN..=1_i32` and `3_i32..=i32::MAX` not covered
|
2023-02-27 14:50:01 -06:00
|
|
|
//~| missing patterns are not covered because `A` is interpreted as a constant pattern, not a new variable
|
|
|
|
//~| HELP introduce a variable instead
|
|
|
|
//~| SUGGESTION A_var
|
2019-09-27 19:30:48 -05:00
|
|
|
|
|
|
|
const A: i32 = 2;
|
|
|
|
}
|