summaryrefslogtreecommitdiffstats
path: root/tests/ui/match/match-tag-unary.stderr
blob: 25e8152d8cf50da760bfc7c1c89aeb5e135d34cc (plain)
1
2
3
4
5
6
7
8
9
10
11
error[E0308]: mismatched types
  --> $DIR/match-tag-unary.rs:4:43
   |
LL | fn main() { let x: A = A::A(0); match x { B::B(y) => { } } }
   |                                       -   ^^^^^^^ expected `A`, found `B`
   |                                       |
   |                                       this expression has type `A`

error: aborting due to previous error

For more information about this error, try `rustc --explain E0308`.