]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-7092.rs
Auto merge of #57108 - Mark-Simulacrum:license-remove, r=pietroalbini
[rust.git] / src / test / ui / issues / issue-7092.rs
1 enum Whatever {
2 }
3
4 fn foo(x: Whatever) {
5     match x {
6         Some(field) =>
7 //~^ ERROR mismatched types
8 //~| expected type `Whatever`
9 //~| found type `std::option::Option<_>`
10 //~| expected enum `Whatever`, found enum `std::option::Option`
11             field.access(),
12     }
13 }
14
15 fn main(){}