Closed
Description
Introduced in #57008, the following program
fn main() {
let a, b = x;
}
yields the following message:
error: unexpected `,` in pattern
--> src/main.rs:2:10
|
2 | let a, b = x;
| ^
help: try adding parentheses to match on a tuple..
|
2 | let (a, b) = x;
| ^^^^^^
help: ..or a vertical bar to match on multiple alternatives
|
2 | let a | b = x;
| ^^^^^
However, the suggestion let a | b = x;
is nonsensical.