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