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