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