summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-3680.rs
blob: a0e52798122972fb88b749edb50fc267440ab539 (plain)
1
2
3
4
5
6
7
8
9
fn main() {
    match None {
        Err(_) => ()
        //~^ ERROR mismatched types
        //~| expected enum `Option<_>`
        //~| found enum `Result<_, _>`
        //~| expected `Option<_>`, found `Result<_, _>`
    }
}