fork/rust
git clone https://git.julia.blue/fork/rust
8d69840ab92
1.43.1
1error[E0532]: expected unit struct, unit variant or constant, found tuple variant `Foo::Bar` 2 --> $DIR/issue-32004.rs:10:9 3 | 4LL | Bar(i32), 5 | -------- `Foo::Bar` defined here 6LL | Baz 7 | --- similarly named unit variant `Baz` defined here 8... 9LL | Foo::Bar => {} 10 | ^^^^^--- 11 | | | 12 | | help: a unit variant with a similar name exists: `Baz` 13 | did you mean `Foo::Bar( /* fields */ )`? 14 15error[E0532]: expected tuple struct or tuple variant, found unit struct `S` 16 --> $DIR/issue-32004.rs:16:9 17 | 18LL | S(()) => {} 19 | ^ not a tuple struct or tuple variant 20 21error: aborting due to 2 previous errors 22 23For more information about this error, try `rustc --explain E0532`.