summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-7092.rs
blob: 85bfbf90d9a2f283241d8cc5e1fe0381876fe4fd (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 enum `Whatever`, found enum `Option`
//~| expected enum `Whatever`
//~| found enum `Option<_>`
            field.access(),
    }
}

fn main(){}