Closed
Description
fn main() {
match Some(1) {
Some(1) => {}
// hello
Some(_) => {}
}
}
This produces the following help
suggestion:
help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
|
5 ~ Some(_) => {}
6 + // hello
7 + None => todo!()
|
The suggestion includes a copy of the // hello
comment, which seems wrong.