]> git.proxmox.com Git - rustc.git/blob - src/test/ui/match/match-tag-nullary.stderr
New upstream version 1.63.0+dfsg1
[rustc.git] / src / test / ui / match / match-tag-nullary.stderr
1 error[E0308]: mismatched types
2 --> $DIR/match-tag-nullary.rs:4:40
3 |
4 LL | enum B { B }
5 | - unit variant defined here
6 LL |
7 LL | fn main() { let x: A = A::A; match x { B::B => { } } }
8 | - ^^^^ expected enum `A`, found enum `B`
9 | |
10 | this expression has type `A`
11
12 error: aborting due to previous error
13
14 For more information about this error, try `rustc --explain E0308`.