]> git.proxmox.com Git - rustc.git/blame - src/test/ui/issues/issue-32004.stderr
New upstream version 1.49.0+dfsg1
[rustc.git] / src / test / ui / issues / issue-32004.stderr
CommitLineData
e74abb32 1error[E0532]: expected unit struct, unit variant or constant, found tuple variant `Foo::Bar`
0731742a 2 --> $DIR/issue-32004.rs:10:9
8faf50e0 3 |
e74abb32
XL
4LL | Bar(i32),
5 | -------- `Foo::Bar` defined here
6LL | Baz
7 | --- similarly named unit variant `Baz` defined here
8...
8faf50e0 9LL | Foo::Bar => {}
72b1a166
FG
10 | ^^^^^^^^
11 |
12help: use the tuple variant pattern syntax instead
13 |
14LL | Foo::Bar(_) => {}
15 | ^^^^^^^^^^^
16help: a unit variant with a similar name exists
17 |
18LL | Foo::Baz => {}
19 | ^^^
8faf50e0 20
e74abb32 21error[E0532]: expected tuple struct or tuple variant, found unit struct `S`
0731742a 22 --> $DIR/issue-32004.rs:16:9
8faf50e0
XL
23 |
24LL | S(()) => {}
e74abb32 25 | ^ not a tuple struct or tuple variant
8faf50e0
XL
26
27error: aborting due to 2 previous errors
28
29For more information about this error, try `rustc --explain E0532`.