]> git.lizzy.rs Git - rust.git/blob - src/test/ui/match/match-tag-unary.stderr
Reword label as per review comment
[rust.git] / src / test / ui / match / match-tag-unary.stderr
1 error[E0308]: mismatched types
2   --> $DIR/match-tag-unary.rs:4:43
3    |
4 LL | fn main() { let x: A = A::A(0); match x { B::B(y) => { } } } //~ ERROR mismatched types
5    |                                       -   ^^^^^^^ expected enum `A`, found enum `B`
6    |                                       |
7    |                                       this match expression has type `A`
8    |
9    = note: expected type `A`
10               found type `B`
11
12 error: aborting due to previous error
13
14 For more information about this error, try `rustc --explain E0308`.