summary refs log tree commit diff
path: root/src/test/ui/issues/issue-7092.rs
blob: b49a262f896c28effe78e1773ef4b17b64c062bf (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 type `Whatever`
//~| found type `std::option::Option<_>`
//~| expected enum `Whatever`, found enum `std::option::Option`
            field.access(),
    }
}

fn main(){}