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 06:01:44 +00:00
//~^ ERROR mismatched types
//~| expected `Whatever`, found `Option<_>`
//~| expected enum `Whatever`
//~| found enum `Option<_>`
2016-04-26 16:49:05 +00:00
field.access(),
}
}
fn main(){}