blob: fab18bd7cf7590c23b1be8e9debc2ac0f61a521d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
enum Whatever {
}
fn foo(x: Whatever) {
match x { //~ NOTE this expression has type `Whatever`
Some(field) =>
//~^ ERROR mismatched types
//~| NOTE expected `Whatever`, found `Option<_>`
//~| NOTE expected enum `Whatever`
//~| NOTE found enum `Option<_>`
field.access(),
}
}
fn main(){}
|