2020-09-10 09:15:51 -05:00
|
|
|
error[E0277]: the trait bound `CustomContext: FromContext<SubContext>` is not satisfied
|
2021-12-20 06:50:49 -06:00
|
|
|
--> fail/union/trait_fail_infer_context.rs:3:1
|
|
|
|
|
|
|
|
|
3 | #[graphql_union]
|
|
|
|
| ^^^^^^^^^^^^^^^^ the trait `FromContext<SubContext>` is not implemented for `CustomContext`
|
|
|
|
|
|
2022-04-08 09:44:50 -05:00
|
|
|
= help: the following other types implement trait `FromContext<T>`:
|
|
|
|
<() as FromContext<T>>
|
|
|
|
<SubContext as FromContext<CustomContext>>
|
2021-12-20 06:50:49 -06:00
|
|
|
= note: this error originates in the attribute macro `graphql_union` (in Nightly builds, run with -Z macro-backtrace for more info)
|
2020-06-04 03:19:01 -05:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2023-01-20 07:31:57 -06:00
|
|
|
--> fail/union/trait_fail_infer_context.rs:3:1
|
|
|
|
|
|
|
|
|
3 | #[graphql_union]
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
| |
|
2023-02-27 12:33:01 -06:00
|
|
|
| expected `&CustomContext`, found `&SubContext`
|
2023-01-20 07:31:57 -06:00
|
|
|
| arguments to this function are incorrect
|
|
|
|
|
|
|
|
|
= note: expected reference `&CustomContext`
|
|
|
|
found reference `&SubContext`
|
2023-02-27 12:33:01 -06:00
|
|
|
note: method defined here
|
2023-01-20 07:31:57 -06:00
|
|
|
--> $WORKSPACE/juniper/src/executor/mod.rs
|
|
|
|
|
|
|
|
|
| fn into_resolvable(self, ctx: &'a C) -> FieldResult<Option<(&'a T::Context, T)>, S>;
|
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
= note: this error originates in the attribute macro `graphql_union` (in Nightly builds, run with -Z macro-backtrace for more info)
|