rust/tests/ui/issues/issue-7092.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
257 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 `Whatever`, found `Option<_>`
//~| expected enum `Whatever`
//~| found enum `Option<_>`
2016-04-26 11:49:05 -05:00
field.access(),
}
}
fn main(){}