]> git.lizzy.rs Git - rust.git/blob - src/test/ui/pattern/suggest-adding-appropriate-missing-pattern-excluding-comments.fixed
Rollup merge of #105555 - krasimirgg:llvm-int-opt-2, r=cuviper
[rust.git] / src / test / ui / pattern / suggest-adding-appropriate-missing-pattern-excluding-comments.fixed
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         None => todo!()
9     }
10 }