summaryrefslogtreecommitdiffstats
path: root/src/test/ui/pattern/suggest-adding-appropriate-missing-pattern-excluding-comments.rs
blob: 42493a6327173f30b51d6ac096454a83dafaf76f (plain)
1
2
3
4
5
6
7
8
9
// run-rustfix

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