]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-32004.stderr
Auto merge of #84842 - blkerby:null_lowercase, r=joshtriplett
[rust.git] / src / test / ui / issues / issue-32004.stderr
1 error[E0532]: expected unit struct, unit variant or constant, found tuple variant `Foo::Bar`
2   --> $DIR/issue-32004.rs:10:9
3    |
4 LL |     Bar(i32),
5    |     -------- `Foo::Bar` defined here
6 LL |     Baz
7    |     --- similarly named unit variant `Baz` defined here
8 ...
9 LL |         Foo::Bar => {}
10    |         ^^^^^^^^
11    |
12 help: use the tuple variant pattern syntax instead
13    |
14 LL |         Foo::Bar(_) => {}
15    |         ^^^^^^^^^^^
16 help: a unit variant with a similar name exists
17    |
18 LL |         Foo::Baz => {}
19    |              ^^^
20
21 error[E0532]: expected tuple struct or tuple variant, found unit struct `S`
22   --> $DIR/issue-32004.rs:16:9
23    |
24 LL | struct S;
25    | --------- `S` defined here
26 ...
27 LL |         S(()) => {}
28    |         ^^^^^ help: use this syntax instead: `S`
29
30 error: aborting due to 2 previous errors
31
32 For more information about this error, try `rustc --explain E0532`.