aboutsummaryrefslogtreecommitdiff
path: root/tests/ui/project/type-mismatch.stderr
blob: 4199c172d1f31179e843552216e61aea2ab7c319 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
error[E0308]: mismatched types
  --> $DIR/type-mismatch.rs:36:9
   |
24 |     match &mut foo {
   |           -------- this expression has type `&mut type_mismatch::__EnumProjection<'_, {integer}, {integer}, _, _>`
...
36 |         None => {} //~ ERROR mismatched types
   |         ^^^^ expected enum `type_mismatch::__EnumProjection`, found enum `std::option::Option`
   |
   = note: expected enum `type_mismatch::__EnumProjection<'_, {integer}, {integer}, _, _>`
              found enum `std::option::Option<_>`

error[E0308]: mismatched types
  --> $DIR/type-mismatch.rs:68:9
   |
56 |     match &mut foo {
   |           -------- this expression has type `&mut type_mismatch_span_issue::__EnumProjection<'_, {integer}, {integer}, _, _>`
...
68 |         None => {} //~ ERROR mismatched types
   |         ^^^^ expected enum `type_mismatch_span_issue::__EnumProjection`, found enum `std::option::Option`
   |
   = note: expected enum `type_mismatch_span_issue::__EnumProjection<'_, {integer}, {integer}, _, _>`
              found enum `std::option::Option<_>`