]> git.lizzy.rs Git - rust.git/blob - tests/ui/pattern/suggest-adding-appropriate-missing-pattern-excluding-comments.rs
Rollup merge of #106931 - Ezrashaw:docs-e0208, r=compiler-errors
[rust.git] / tests / 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 }