mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 23:34:48 +00:00
11 lines
289 B
Rust
11 lines
289 B
Rust
fn main() {
|
|
let A = 3;
|
|
//~^ ERROR refutable pattern in local binding: `i32::MIN..=1_i32` and
|
|
//~| interpreted as a constant pattern, not a new variable
|
|
//~| HELP introduce a variable instead
|
|
//~| SUGGESTION a_var
|
|
|
|
const A: i32 = 2;
|
|
//~^ constant defined here
|
|
}
|