summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-7092.rs
blob: c3c96c7d3f61d89311e64f719f3d21f72a3166c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
enum Whatever {
}

fn foo(x: Whatever) {
    match x {
        Some(field) =>
//~^ ERROR mismatched types
//~| expected `Whatever`, found `Option<_>`
//~| expected enum `Whatever`
//~| found enum `Option<_>`
            field.access(),
    }
}

fn main(){}