2014-05-20 20:39:15 -07:00
|
|
|
enum Whatever {
|
|
|
|
}
|
|
|
|
|
|
|
|
fn foo(x: Whatever) {
|
|
|
|
match x {
|
2014-10-21 03:40:15 +02:00
|
|
|
Some(field) =>
|
2015-01-12 01:01:44 -05:00
|
|
|
//~^ ERROR mismatched types
|
2023-01-02 18:00:33 -08:00
|
|
|
//~| expected `Whatever`, found `Option<_>`
|
2019-11-13 14:16:56 -08:00
|
|
|
//~| expected enum `Whatever`
|
2020-09-02 10:40:56 +03:00
|
|
|
//~| found enum `Option<_>`
|
2016-04-26 12:49:05 -04:00
|
|
|
field.access(),
|
2014-05-20 20:39:15 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main(){}
|