summaryrefslogtreecommitdiffstats
path: root/src/test/ui/error-codes/E0408.rs
blob: e91a98f3857015000c4846f89501922efaebd323 (plain)
1
2
3
4
5
6
7
8
fn main() {
    let x = Some(0);

    match x {
        Some(y) | None => {} //~  ERROR variable `y` is not bound in all patterns
        _ => ()
    }
}