Fix codegen failure tests

This commit is contained in:
tyranron 2024-05-09 11:20:14 +02:00
parent 2682ee1418
commit 02e931b516
No known key found for this signature in database
GPG key ID: 762E144FB230A4F0

View file

@ -9,23 +9,6 @@ error[E0119]: conflicting implementations of trait `MutuallyExclusive` for type
|
= note: this error originates in the macro `::juniper::sa::assert_type_ne_all` which comes from the expansion of the derive macro `GraphQLUnion` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0277]: the trait bound `std::string::String: GraphQLObject<__S>` is not satisfied
--> fail/union/struct_same_type_ugly.rs:5:14
|
5 | #[graphql(on std::string::String = Character::b)]
| ^^^^^^^^^^^^^^^^^^^ the trait `GraphQLObject<__S>` is not implemented for `std::string::String`
|
= help: the following other types implement trait `GraphQLObject<S>`:
<Box<T> as GraphQLObject<S>>
<juniper::meta::Field<'a, S> as GraphQLObject<S>>
<Argument<'a, S> as GraphQLObject<S>>
<EnumValue as GraphQLObject<__S>>
<SchemaType<'a, S> as GraphQLObject<S>>
<juniper::schema::model::TypeType<'a, S> as GraphQLObject<S>>
<juniper::schema::model::DirectiveType<'a, S> as GraphQLObject<S>>
<Arc<T> as GraphQLObject<S>>
<&T as GraphQLObject<S>>
error[E0277]: the trait bound `std::string::String: GraphQLObject<__S>` is not satisfied
--> fail/union/struct_same_type_ugly.rs:4:14
|
@ -42,3 +25,20 @@ error[E0277]: the trait bound `std::string::String: GraphQLObject<__S>` is not s
<juniper::schema::model::DirectiveType<'a, S> as GraphQLObject<S>>
<Arc<T> as GraphQLObject<S>>
<&T as GraphQLObject<S>>
error[E0277]: the trait bound `std::string::String: GraphQLObject<__S>` is not satisfied
--> fail/union/struct_same_type_ugly.rs:5:14
|
5 | #[graphql(on std::string::String = Character::b)]
| ^^^^^^^^^^^^^^^^^^^ the trait `GraphQLObject<__S>` is not implemented for `std::string::String`
|
= help: the following other types implement trait `GraphQLObject<S>`:
<Box<T> as GraphQLObject<S>>
<juniper::meta::Field<'a, S> as GraphQLObject<S>>
<Argument<'a, S> as GraphQLObject<S>>
<EnumValue as GraphQLObject<__S>>
<SchemaType<'a, S> as GraphQLObject<S>>
<juniper::schema::model::TypeType<'a, S> as GraphQLObject<S>>
<juniper::schema::model::DirectiveType<'a, S> as GraphQLObject<S>>
<Arc<T> as GraphQLObject<S>>
<&T as GraphQLObject<S>>