fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #69444 - pietroalbini:stable-next-final-v2-new, r=pietroalbinif3e1a954d2e

1.41.1
533 B15 linesraw
1error[E0005]: refutable pattern in local binding: `std::i32::MIN..=1i32` and `3i32..=std::i32::MAX` not covered
2  --> $DIR/const-pat-non-exaustive-let-new-var.rs:2:9
3   |
4LL |     let A = 3;
5   |         ^
6   |         |
7   |         interpreted as a constant pattern, not a new variable
8   |         help: introduce a variable instead: `a_var`
9...
10LL |     const A: i32 = 2;
11   |     ----------------- constant defined here
12
13error: aborting due to previous error
14
15For more information about this error, try `rustc --explain E0005`.