2020-06-04 03:19:01 -05:00
|
|
|
error: GraphQL union enum allows only unnamed variants with a single field, e.g. `Some(T)`
|
2021-12-14 11:30:27 -06:00
|
|
|
--> fail/union/enum_wrong_variant_field.rs:5:5
|
2020-06-04 03:19:01 -05:00
|
|
|
|
|
|
|
|
5 | A { human: Human },
|
|
|
|
| ^
|
2021-12-20 06:50:49 -06:00
|
|
|
|
|
2022-06-28 10:32:08 -05:00
|
|
|
= note: https://spec.graphql.org/October2021#sec-Unions
|
2021-12-14 11:30:27 -06:00
|
|
|
|
2021-12-20 06:50:49 -06:00
|
|
|
error: GraphQL union enum allows only unnamed variants with a single field, e.g. `Some(T)`
|
2021-12-14 11:30:27 -06:00
|
|
|
--> fail/union/enum_wrong_variant_field.rs:10:6
|
2020-06-04 03:19:01 -05:00
|
|
|
|
|
|
|
|
10 | A(Human, u8),
|
|
|
|
| ^^^^^^^^^^^
|
2021-12-20 06:50:49 -06:00
|
|
|
|
|
2022-06-28 10:32:08 -05:00
|
|
|
= note: https://spec.graphql.org/October2021#sec-Unions
|