]> git.proxmox.com Git - rustc.git/blame - src/test/ui/match/match-tag-nullary.stderr
New upstream version 1.34.2+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 |
0731742a
XL
4LL | fn main() { let x: A = A::A; match x { B::B => { } } } //~ ERROR mismatched types
5 | ^^^^ expected enum `A`, found enum `B`
b7449926 6 |
0731742a
XL
7 = note: expected type `A`
8 found type `B`
b7449926
XL
9
10error: aborting due to previous error
11
12For more information about this error, try `rustc --explain E0308`.