blob: 09fa6c525082b867bcc33f33b837681066d159e2 [file] [log] [blame]
enum Whatever {
}
fn foo(x: Whatever) {
match x {
Some(field) =>
//~^ ERROR mismatched types
//~| expected enum `Whatever`, found enum `std::option::Option`
//~| expected enum `Whatever`
//~| found enum `std::option::Option<_>`
field.access(),
}
}
fn main(){}