aboutsummaryrefslogtreecommitdiff
path: root/tests/ui/project/type-mismatch.stderr
blob: b4c97d5a998fafb2a48f203567c8cbc9f5402bcb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
error[E0308]: mismatched types
  --> $DIR/type-mismatch.rs:35:9
   |
23 |     match &mut foo {
   |           -------- this expression has type `&mut type_mismatch::__EnumProjection<'_, {integer}, {integer}, _, _>`
...
35 |         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
  |
  = note: expected enum `type_mismatch_span_issue::__EnumProjection<'_, {integer}, {integer}, _, _>`
             found enum `std::option::Option<_>`