juniper/tests/codegen/fail/union/struct_non_object_variant.stderr
2024-09-09 15:50:37 +03:00

16 lines
914 B
Text

error[E0277]: the trait bound `Test: GraphQLObject<__S>` is not satisfied
--> fail/union/struct_non_object_variant.rs:10:14
|
10 | #[graphql(on Test = Character::a)]
| ^^^^ the trait `GraphQLObject<__S>` is not implemented for `Test`
|
= help: the following other types implement trait `GraphQLObject<S>`:
`&T` implements `GraphQLObject<S>`
`Arc<T>` implements `GraphQLObject<S>`
`Argument<'a, S>` implements `GraphQLObject<S>`
`Box<T>` implements `GraphQLObject<S>`
`EnumValue` implements `GraphQLObject<__S>`
`SchemaType<'a, S>` implements `GraphQLObject<S>`
`juniper::meta::Field<'a, S>` implements `GraphQLObject<S>`
`juniper::schema::model::DirectiveType<'a, S>` implements `GraphQLObject<S>`
`juniper::schema::model::TypeType<'a, S>` implements `GraphQLObject<S>`