juniper/tests/codegen/fail/union/trait_fail_infer_context.stderr
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

20 lines
967 B
Text

error[E0277]: the trait bound `CustomContext: FromContext<SubContext>` is not satisfied
--> fail/union/trait_fail_infer_context.rs:3:1
|
3 | #[graphql_union]
| ^^^^^^^^^^^^^^^^ the trait `FromContext<SubContext>` is not implemented for `CustomContext`
|
= help: the following other types implement trait `FromContext<T>`:
<() as FromContext<T>>
<SubContext as FromContext<CustomContext>>
= note: this error originates in the attribute macro `graphql_union` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0308]: mismatched types
--> fail/union/trait_fail_infer_context.rs:3:1
|
3 | #[graphql_union]
| ^^^^^^^^^^^^^^^^ expected struct `CustomContext`, found struct `SubContext`
|
= note: expected reference `&CustomContext`
found reference `&SubContext`
= note: this error originates in the attribute macro `graphql_union` (in Nightly builds, run with -Z macro-backtrace for more info)