Closed
Description
It is possible to write single path matches, which - although they are correct - are useless (unless I'm missing something). We could catch this cases and raise an error or a warning. I'm personally leaning towards an error, I would prefer keeping the code clean from cases like this.
fn main() {
match Some(1) {
_ => {println!("Nothing else could happen")}
}
}