summaryrefslogtreecommitdiffstats
path: root/tests/ui/pattern/suggest-adding-appropriate-missing-pattern-excluding-comments.fixed
blob: b469fade3ea5e33cbab0ede6c59e952d711802ba (plain)
1
2
3
4
5
6
7
8
9
10
// run-rustfix

fn main() {
    match Some(1) { //~ ERROR non-exhaustive patterns: `None` not covered
        Some(1) => {}
        // hello
        Some(_) => {},
        None => todo!()
    }
}