]> git.lizzy.rs Git - rust.git/blob - src/test/ui/pattern/suggest-adding-appropriate-missing-pattern-excluding-comments.rs
Auto merge of #100845 - timvermeulen:iter_compare, r=scottmcm
[rust.git] / src / test / ui / pattern / suggest-adding-appropriate-missing-pattern-excluding-comments.rs
1 // run-rustfix
2
3 fn main() {
4     match Some(1) { //~ ERROR non-exhaustive patterns: `None` not covered
5         Some(1) => {}
6         // hello
7         Some(_) => {}
8     }
9 }