summaryrefslogtreecommitdiffstats
path: root/tests/ui/error-codes/E0001.rs
blob: 2c95f02bf3417ab5650627b0ed34eb7411563636 (plain)
1
2
3
4
5
6
7
8
9
10
#![deny(unreachable_patterns)]

fn main() {
    let foo = Some(1);
    match foo {
        Some(_) => {/* ... */}
        None => {/* ... */}
        _ => {/* ... */} //~ ERROR unreachable pattern
    }
}