Closed
Description
fn main() {
label: loop {}
// ^^^^ error: expected identifier, found keyword `loop`
}
In situations like these, a more helpful suggestion would be to change label
to 'label
. I imagine this error could be special cased to look at the identifier and suggest something different for loop
/while
/for
.