Closed
Description
I did a stupid typo in a program, where I typed in
twice in a for
statement:
fn main() {
for i in in 1..2 {
println!("{}", i);
}
}
The compiler pointed the error on the closing brace, which, in the real code, with much more things happening in the loop (plus nested loops) was completely unhelpful.
error: expected one of `{` or an operator, found `}`
--> <anon>:5:1
|
5 | }
| ^
error: aborting due to previous error