Closed
Description
Given the following code: (Playground)
fn main() {
let (x, drop(y)) = (1, 2);
}
The current output is:
error[E0532]: expected tuple struct or tuple variant, found function `drop`
--> src/main.rs:2:13
|
2 | let (x, drop(y)) = (1, 2);
| ^^^^ not a tuple struct or tuple variant
The error message should give/link to an explanation of what kinds of things are expected in patterns in general, maybe in a note.