blob: b49a262f896c28effe78e1773ef4b17b64c062bf [file] [log] [blame]
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(){}