You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cynic-codegen/src/scalar_derive/snapshots/cynic_codegen__scalar_derive__tests__snapshot_scalar_derive.snap
| ^^^^^^^^^^^^^^^^^^^^ the trait `IsOutputScalar<'_, std::string::String>` is not implemented for `i32`, which is required by `Flattened<ScalarDeserialize<Vec<i32>, std::option::Option<Vec<std::option::Option<std::string::String>>>>>: Deserialize<'de>`
44
+
|
45
+
= help: the trait `IsOutputScalar<'_, i32>` is implemented for `i32`
46
+
= help: for that trait implementation, expected `i32`, found `std::string::String`
47
+
= note: required for `std::option::Option<i32>` to implement `IsOutputScalar<'_, std::option::Option<std::string::String>>`
48
+
= note: 2 redundant requirements hidden
49
+
= note: required for `std::option::Option<Vec<std::option::Option<i32>>>` to implement `IsOutputScalar<'_, std::option::Option<Vec<std::option::Option<std::string::String>>>>`
50
+
= note: required for `Flattened<ScalarDeserialize<Vec<i32>, std::option::Option<Vec<std::option::Option<std::string::String>>>>>` to implement `Deserialize<'de>`
| ^^^^^^^^^^^^^^^^^^^^ the trait `IsOutputScalar<'_, std::string::String>` is not implemented for `f64`, which is required by `Flattened<ScalarDeserialize<std::option::Option<Vec<f64>>, std::option::Option<Vec<std::option::Option<std::string::String>>>>>: Deserialize<'de>`
66
+
|
67
+
= help: the trait `IsOutputScalar<'_, f64>` is implemented for `f64`
68
+
= help: for that trait implementation, expected `f64`, found `std::string::String`
69
+
= note: required for `std::option::Option<f64>` to implement `IsOutputScalar<'_, std::option::Option<std::string::String>>`
70
+
= note: 2 redundant requirements hidden
71
+
= note: required for `std::option::Option<Vec<std::option::Option<f64>>>` to implement `IsOutputScalar<'_, std::option::Option<Vec<std::option::Option<std::string::String>>>>`
72
+
= note: required for `Flattened<ScalarDeserialize<std::option::Option<Vec<f64>>, std::option::Option<Vec<std::option::Option<std::string::String>>>>>` to implement `Deserialize<'de>`
| ---------- required by a bound in this associated function
78
+
| where
79
+
| V: Deserialize<'de>,
80
+
| ^^^^^^^^^^^^^^^^ required by this bound in `MapAccess::next_value`
81
+
= note: this error originates in the derive macro `cynic::QueryFragment` (in Nightly builds, run with -Z macro-backtrace for more info)
82
+
39
83
error[E0277]: the trait bound `std::option::Option<Vec<std::option::Option<schema::FilmCharactersEdge>>>: FlattensInto<Vec<std::string::String>>` is not satisfied
error[E0277]: the trait bound `u64: IsScalar<i32>` is not satisfied
1
+
error[E0277]: the trait bound `u64: IsOutputScalar<'_, i32>` is not satisfied
2
2
--> tests/cases/wrong-scalar-type.rs:15:21
3
3
|
4
4
15 | episode_id: Option<u64>,
5
-
| ^^^^^^ the trait `IsScalar<i32>` is not implemented for `u64`, which is required by `std::option::Option<u64>: IsScalar<std::option::Option<i32>>`
5
+
| ^^^^^^ the trait `IsOutputScalar<'_, i32>` is not implemented for `u64`, which is required by `std::option::Option<u64>: IsOutputScalar<'_, std::option::Option<i32>>`
6
6
|
7
-
= help: the following other types implement trait `IsScalar<SchemaType>`:
8
-
<f64 as IsScalar<f64>>
9
-
<i32 as IsScalar<i32>>
10
-
= note: required for `std::option::Option<u64>` to implement `IsScalar<std::option::Option<i32>>`
7
+
= help: the following other types implement trait `IsOutputScalar<'de, SchemaType>`:
8
+
<f64 as IsOutputScalar<'de, f64>>
9
+
<i32 as IsOutputScalar<'de, i32>>
10
+
= note: required for `std::option::Option<u64>` to implement `IsOutputScalar<'_, std::option::Option<i32>>`
11
+
12
+
error[E0277]: the trait bound `u64: IsOutputScalar<'_, i32>` is not satisfied
13
+
--> tests/cases/wrong-scalar-type.rs:15:21
14
+
|
15
+
15 | episode_id: Option<u64>,
16
+
| ^^^^^^^^^^^ the trait `IsOutputScalar<'_, i32>` is not implemented for `u64`, which is required by `std::option::Option<u64>: IsOutputScalar<'_, std::option::Option<i32>>`
17
+
|
18
+
= help: the following other types implement trait `IsOutputScalar<'de, SchemaType>`:
19
+
<f64 as IsOutputScalar<'de, f64>>
20
+
<i32 as IsOutputScalar<'de, i32>>
21
+
= note: required for `std::option::Option<u64>` to implement `IsOutputScalar<'_, std::option::Option<i32>>`
22
+
23
+
error[E0277]: the trait bound `u64: IsOutputScalar<'_, i32>` is not satisfied
24
+
--> tests/cases/wrong-scalar-type.rs:12:14
25
+
|
26
+
12 | #[derive(cynic::QueryFragment, Debug)]
27
+
| ^^^^^^^^^^^^^^^^^^^^ the trait `IsOutputScalar<'_, i32>` is not implemented for `u64`, which is required by `ScalarDeserialize<std::option::Option<u64>, std::option::Option<i32>>: Deserialize<'de>`
28
+
|
29
+
= help: the following other types implement trait `IsOutputScalar<'de, SchemaType>`:
30
+
<f64 as IsOutputScalar<'de, f64>>
31
+
<i32 as IsOutputScalar<'de, i32>>
32
+
= note: required for `std::option::Option<u64>` to implement `IsOutputScalar<'_, std::option::Option<i32>>`
33
+
= note: required for `ScalarDeserialize<std::option::Option<u64>, std::option::Option<i32>>` to implement `Deserialize<'de>`
0 commit comments