about summary refs log tree commit diff
path: root/tests/ui/pattern/suggest-adding-appropriate-missing-pattern-excluding-comments.rs
blob: 7e4b60f8ff28d5abf520b8041059d733104f0575 (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(_) => {}
    }
}