a32140cd46
Co-authored-by: Kai Ren <tyranron@gmail.com>
7 lines
311 B
Text
7 lines
311 B
Text
error: GraphQL union expects trait method to accept `&self` only and, optionally, `&Context`
|
|
--> fail/union/trait_wrong_method_input_args.rs:5:10
|
|
|
|
|
5 | fn a(&self, ctx: &(), rand: u8) -> Option<&Human>;
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
= note: https://spec.graphql.org/October2021#sec-Unions
|