Closed
Description
Currently, code like this
'unused_name: for i in 0..2 {
println!("{}", i);
}
is silently accepted. As with unused function parameters or variable declarations, this is usually indicative of a mistake. A warning should be issued unless the break name begins with _
.
Do I need to treat this as a feature request and file an RFC? Please say "no" — the RFC process is heavyweight as hell. I think it's just a bug report 😄.