fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
761 B19 linesraw
1error[E0532]: expected tuple struct or tuple variant, found unit variant `FarmAnimal::Cow`
2  --> $DIR/issue-84700.rs:15:9
3   |
4LL |     Cow,
5   |     --- `FarmAnimal::Cow` defined here
6...
7LL |         FarmAnimal::Cow(_) => "moo".to_string(),
8   |         ^^^^^^^^^^^^^^^^^^ help: use this syntax instead: `FarmAnimal::Cow`
9
10error[E0164]: expected tuple struct or tuple variant, found struct variant `FarmAnimal::Chicken`
11  --> $DIR/issue-84700.rs:17:9
12   |
13LL |         FarmAnimal::Chicken(_) => "cluck, cluck!".to_string(),
14   |         ^^^^^^^^^^^^^^^^^^^^^^ not a tuple struct or tuple variant
15
16error: aborting due to 2 previous errors
17
18Some errors have detailed explanations: E0164, E0532.
19For more information about an error, try `rustc --explain E0164`.