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
|
2023-01-02 20:00:33 -06:00
|
|
|
//~| expected `Whatever`, found `Option<_>`
|
2019-11-13 16:16:56 -06:00
|
|
|
//~| expected enum `Whatever`
|
2020-09-02 02:40:56 -05:00
|
|
|
//~| found enum `Option<_>`
|
2016-04-26 11:49:05 -05:00
|
|
|
field.access(),
|
2014-05-20 22:39:15 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main(){}
|