2014-05-20 22:39:15 -05:00
|
|
|
enum Whatever {
|
|
|
|
}
|
|
|
|
|
|
|
|
fn foo(x: Whatever) {
|
|
|
|
match x {
|
2014-10-20 20:40:15 -05:00
|
|
|
Some(field) =>
|
2015-01-12 00:01:44 -06:00
|
|
|
//~^ ERROR mismatched types
|
2016-04-20 13:42:13 -05:00
|
|
|
//~| expected type `Whatever`
|
|
|
|
//~| found type `std::option::Option<_>`
|
|
|
|
//~| expected enum `Whatever`, found enum `std::option::Option`
|
2016-04-26 11:49:05 -05:00
|
|
|
field.access(),
|
2014-05-20 22:39:15 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main(){}
|