rust/src/test/ui/issues/issue-7092.rs

16 lines
290 B
Rust
Raw Normal View History

enum Whatever {
}
fn foo(x: Whatever) {
match x {
Some(field) =>
2015-01-12 00:01:44 -06:00
//~^ ERROR mismatched types
//~| 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(),
}
}
fn main(){}