diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/issues/issue-7092.rs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-7092.rs b/src/test/ui/issues/issue-7092.rs new file mode 100644 index 000000000..85bfbf90d --- /dev/null +++ b/src/test/ui/issues/issue-7092.rs @@ -0,0 +1,15 @@ +enum Whatever { +} + +fn foo(x: Whatever) { + match x { + Some(field) => +//~^ ERROR mismatched types +//~| expected enum `Whatever`, found enum `Option` +//~| expected enum `Whatever` +//~| found enum `Option<_>` + field.access(), + } +} + +fn main(){} |