|
1 | | -error[E0308]: mismatched types |
2 | | - --> tests/fail/missing_arg_with_event.rs:26:1 |
3 | | - | |
4 | | -26 | #[appsync_operation(query(player), with_appsync_event)] |
5 | | - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
6 | | - | | |
7 | | - | expected a tuple with 2 elements, found one with 1 element |
8 | | - | this expression has type `(ID, &AppsyncEvent<Operation>)` |
9 | | - | |
10 | | - = note: expected tuple `(ID, &AppsyncEvent<Operation>)` |
11 | | - found tuple `(_,)` |
12 | | - = note: this error originates in the attribute macro `appsync_operation` (in Nightly builds, run with -Z macro-backtrace for more info) |
13 | | - |
14 | | -error[E0308]: mismatched types |
15 | | - --> tests/fail/missing_arg_with_event.rs:6:1 |
16 | | - | |
17 | | -6 | #[appsync_operation(mutation(createPlayer), with_appsync_event)] |
18 | | - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
19 | | - | | |
20 | | - | expected `(String, &AppsyncEvent<Operation>)`, found `()` |
21 | | - | this expression has type `(std::string::String, &AppsyncEvent<Operation>)` |
22 | | - | |
23 | | - = note: expected tuple `(std::string::String, &AppsyncEvent<Operation>)` |
24 | | - found unit type `()` |
25 | | - = note: this error originates in the attribute macro `appsync_operation` (in Nightly builds, run with -Z macro-backtrace for more info) |
26 | | - |
27 | | -error[E0308]: mismatched types |
28 | | - --> tests/fail/missing_arg_with_event.rs:16:1 |
29 | | - | |
30 | | -16 | #[appsync_operation(mutation(deletePlayer), with_appsync_event)] |
31 | | - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
32 | | - | | |
33 | | - | expected a tuple with 2 elements, found one with 1 element |
34 | | - | this expression has type `(ID, &AppsyncEvent<Operation>)` |
35 | | - | |
36 | | - = note: expected tuple `(ID, &AppsyncEvent<Operation>)` |
37 | | - found tuple `(_,)` |
38 | | - = note: this error originates in the attribute macro `appsync_operation` (in Nightly builds, run with -Z macro-backtrace for more info) |
39 | | - |
40 | 1 | error[E0593]: function is expected to take 2 arguments, but it takes 0 arguments |
41 | 2 | --> tests/fail/missing_arg_with_event.rs:7:10 |
42 | 3 | | |
@@ -90,3 +51,42 @@ note: required by a bound in `player::with_event::check_signature` |
90 | 51 | 3 | appsync_lambda_main!("../../../../schema.graphql"); |
91 | 52 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `check_signature` |
92 | 53 | = note: this error originates in the macro `appsync_lambda_main` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 54 | + |
| 55 | +error[E0308]: mismatched types |
| 56 | + --> tests/fail/missing_arg_with_event.rs:26:1 |
| 57 | + | |
| 58 | +26 | #[appsync_operation(query(player), with_appsync_event)] |
| 59 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 60 | + | | |
| 61 | + | expected a tuple with 2 elements, found one with 1 element |
| 62 | + | this expression has type `(ID, &AppsyncEvent<Operation>)` |
| 63 | + | |
| 64 | + = note: expected tuple `(ID, &AppsyncEvent<Operation>)` |
| 65 | + found tuple `(_,)` |
| 66 | + = note: this error originates in the attribute macro `appsync_operation` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 67 | + |
| 68 | +error[E0308]: mismatched types |
| 69 | + --> tests/fail/missing_arg_with_event.rs:6:1 |
| 70 | + | |
| 71 | +6 | #[appsync_operation(mutation(createPlayer), with_appsync_event)] |
| 72 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 73 | + | | |
| 74 | + | expected `(String, &AppsyncEvent<Operation>)`, found `()` |
| 75 | + | this expression has type `(std::string::String, &AppsyncEvent<Operation>)` |
| 76 | + | |
| 77 | + = note: expected tuple `(std::string::String, &AppsyncEvent<Operation>)` |
| 78 | + found unit type `()` |
| 79 | + = note: this error originates in the attribute macro `appsync_operation` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 80 | + |
| 81 | +error[E0308]: mismatched types |
| 82 | + --> tests/fail/missing_arg_with_event.rs:16:1 |
| 83 | + | |
| 84 | +16 | #[appsync_operation(mutation(deletePlayer), with_appsync_event)] |
| 85 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 86 | + | | |
| 87 | + | expected a tuple with 2 elements, found one with 1 element |
| 88 | + | this expression has type `(ID, &AppsyncEvent<Operation>)` |
| 89 | + | |
| 90 | + = note: expected tuple `(ID, &AppsyncEvent<Operation>)` |
| 91 | + found tuple `(_,)` |
| 92 | + = note: this error originates in the attribute macro `appsync_operation` (in Nightly builds, run with -Z macro-backtrace for more info) |
0 commit comments