juniper/tests/codegen/fail/union/enum_wrong_variant_field.rs
Kai Ren 72ed45a77c
Rework CI and project toolchain (#1043)
- remove `cargo-make` integration
- rework CI pipeline more granular and precise
- rework releasing process
- tune up project layout
- fill up new CHANGELOGs

Additionally:
- fix latest nightly/stable Rust inconsistencies
2022-04-08 17:44:50 +03:00

18 lines
253 B
Rust

use juniper::{GraphQLObject, GraphQLUnion};
#[derive(GraphQLUnion)]
enum Character1 {
A { human: Human },
}
#[derive(GraphQLUnion)]
enum Character2 {
A(Human, u8),
}
#[derive(GraphQLObject)]
pub struct Human {
id: String,
}
fn main() {}