]> git.lizzy.rs Git - rust.git/blob - src/test/ui/suggestions/issue-84700.stderr
Rollup merge of #90420 - GuillaumeGomez:rustdoc-internals-feature, r=camelid
[rust.git] / src / test / ui / suggestions / issue-84700.stderr
1 error[E0532]: expected tuple struct or tuple variant, found unit variant `FarmAnimal::Cow`
2   --> $DIR/issue-84700.rs:15:9
3    |
4 LL |     Cow,
5    |     --- `FarmAnimal::Cow` defined here
6 ...
7 LL |         FarmAnimal::Cow(_) => "moo".to_string(),
8    |         ^^^^^^^^^^^^^^^^^^ help: use this syntax instead: `FarmAnimal::Cow`
9
10 error[E0532]: expected tuple struct or tuple variant, found struct variant `FarmAnimal::Chicken`
11   --> $DIR/issue-84700.rs:17:9
12    |
13 LL |     Chicken { num_eggs: usize },
14    |     --------------------------- `FarmAnimal::Chicken` defined here
15 ...
16 LL |         FarmAnimal::Chicken(_) => "cluck, cluck!".to_string(),
17    |         ^^^^^^^^^^^^^^^^^^^^^^ help: use struct pattern syntax instead: `FarmAnimal::Chicken { num_eggs }`
18
19 error: aborting due to 2 previous errors
20
21 For more information about this error, try `rustc --explain E0532`.