Closed
Description
The following code, which won't compile because of (edited: #49733) #29641
fn main() {
let box = Box::new(1);
}
yields an unhelpful error message:
error: expected pattern, found `=`
--> src/main.rs:2:13
|
2 | let box = Box::new(1);
| ^ expected pattern
Particularly confusing if your text editor doesn't highlight box
! It would be nicer to show some help proposing to rename the variable.