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