1error[E0308]: mismatched types
2  --> $DIR/type-mismatch.rs:36:9
3   |
424 |     match &mut foo {
5   |           -------- this expression has type `&mut type_mismatch::__EnumProjection<'_, {integer}, {integer}, _, _>`
6...
736 |         None => {} //~ ERROR mismatched types
8   |         ^^^^ expected enum `type_mismatch::__EnumProjection`, found enum `std::option::Option`
9   |
10   = note: expected enum `type_mismatch::__EnumProjection<'_, {integer}, {integer}, _, _>`
11              found enum `std::option::Option<_>`
12
13error[E0308]: mismatched types
14  --> $DIR/type-mismatch.rs:68:9
15   |
1656 |     match &mut foo {
17   |           -------- this expression has type `&mut type_mismatch_span_issue::__EnumProjection<'_, {integer}, {integer}, _, _>`
18...
1968 |         None => {} //~ ERROR mismatched types
20   |         ^^^^ expected enum `type_mismatch_span_issue::__EnumProjection`, found enum `std::option::Option`
21   |
22   = note: expected enum `type_mismatch_span_issue::__EnumProjection<'_, {integer}, {integer}, _, _>`
23              found enum `std::option::Option<_>`
24