16 lines
264 B
Rust
16 lines
264 B
Rust
enum Whatever {
|
|
}
|
|
|
|
fn foo(x: Whatever) {
|
|
match x {
|
|
Some(field) =>
|
|
//~^ ERROR mismatched types
|
|
//~| expected enum `Whatever`, found enum `Option`
|
|
//~| expected enum `Whatever`
|
|
//~| found enum `Option<_>`
|
|
field.access(),
|
|
}
|
|
}
|
|
|
|
fn main(){}
|