rust/src/test/ui/issues/issue-7092.rs
2018-12-25 21:08:33 -07:00

16 lines
290 B
Rust

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