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: tests/ui/endpoint/invalid_body_ty.stderr
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@ error[E0277]: the trait bound `FooBody: OpenapiType` is not satisfied
2
2
--> tests/ui/endpoint/invalid_body_ty.rs:15:16
3
3
|
4
4
15 | fn endpoint(_: FooBody) {
5
-
| ^^^^^^^ the trait `OpenapiType` is not implemented for `FooBody`, which is required by `<endpoint___gotham_restful_endpoint as EndpointWithSchema>::Body: RequestBody`
5
+
| ^^^^^^^ the trait `OpenapiType` is not implemented for `FooBody`
6
6
|
7
7
= help: the following other types implement trait `OpenapiType`:
8
8
&'a T
@@ -26,7 +26,7 @@ error[E0277]: the trait bound `FooBody: RequestBody` is not satisfied
26
26
--> tests/ui/endpoint/invalid_body_ty.rs:15:16
27
27
|
28
28
15 | fn endpoint(_: FooBody) {
29
-
| ^^^^^^^ the trait `for<'de> serde::de::Deserialize<'de>` is not implemented for `FooBody`, which is required by `FooBody: RequestBody`
29
+
| ^^^^^^^ the trait `for<'de> serde::de::Deserialize<'de>` is not implemented for `FooBody`
30
30
|
31
31
= help: the following other types implement trait `serde::de::Deserialize<'de>`:
Copy file name to clipboardExpand all lines: tests/ui/endpoint/invalid_params_ty.stderr
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -43,7 +43,7 @@ error[E0277]: the trait bound `FooParams: StateData` is not satisfied
43
43
--> tests/ui/endpoint/invalid_params_ty.rs:15:16
44
44
|
45
45
15 | fn endpoint(_: FooParams) {
46
-
| ^^^^^^^^^ the trait `StateData` is not implemented for `FooParams`, which is required by `<endpoint___gotham_restful_endpoint as EndpointWithSchema>::Params: QueryStringExtractor<Body>`
46
+
| ^^^^^^^^^ the trait `StateData` is not implemented for `FooParams`
47
47
|
48
48
= help: the following other types implement trait `StateData`:
49
49
AuthSource
@@ -66,7 +66,7 @@ error[E0277]: the trait bound `FooParams: StaticResponseExtender` is not satisfi
66
66
--> tests/ui/endpoint/invalid_params_ty.rs:15:16
67
67
|
68
68
15 | fn endpoint(_: FooParams) {
69
-
| ^^^^^^^^^ the trait `StaticResponseExtender` is not implemented for `FooParams`, which is required by `<endpoint___gotham_restful_endpoint as EndpointWithSchema>::Params: QueryStringExtractor<Body>`
69
+
| ^^^^^^^^^ the trait `StaticResponseExtender` is not implemented for `FooParams`
70
70
|
71
71
= help: the following other types implement trait `StaticResponseExtender`:
| ^^^^^^^^^ the trait `for<'de> serde::de::Deserialize<'de>` is not implemented for `FooParams`, which is required by `<endpoint___gotham_restful_endpoint as EndpointWithSchema>::Params: QueryStringExtractor<Body>`
89
+
| ^^^^^^^^^ the trait `for<'de> serde::de::Deserialize<'de>` is not implemented for `FooParams`
90
90
|
91
91
= note: for local types consider adding `#[derive(serde::Deserialize)]` to your `FooParams` type
92
92
= note: for types from other crates check whether the crate offers a `serde` feature flag
| ^^^^^^^^^^^^^^^ the trait `StateData` is not implemented for `FooPlaceholders`, which is required by `<endpoint___gotham_restful_endpoint as EndpointWithSchema>::Placeholders: PathExtractor<Body>`
46
+
| ^^^^^^^^^^^^^^^ the trait `StateData` is not implemented for `FooPlaceholders`
47
47
|
48
48
= help: the following other types implement trait `StateData`:
49
49
AuthSource
@@ -66,7 +66,7 @@ error[E0277]: the trait bound `FooPlaceholders: StaticResponseExtender` is not s
| ^^^^^^^^^^^^^^^ the trait `StaticResponseExtender` is not implemented for `FooPlaceholders`, which is required by `<endpoint___gotham_restful_endpoint as EndpointWithSchema>::Placeholders: PathExtractor<Body>`
69
+
| ^^^^^^^^^^^^^^^ the trait `StaticResponseExtender` is not implemented for `FooPlaceholders`
70
70
|
71
71
= help: the following other types implement trait `StaticResponseExtender`:
| ^^^^^^^^^^^^^^^ the trait `for<'de> serde::de::Deserialize<'de>` is not implemented for `FooPlaceholders`, which is required by `<endpoint___gotham_restful_endpoint as EndpointWithSchema>::Placeholders: PathExtractor<Body>`
89
+
| ^^^^^^^^^^^^^^^ the trait `for<'de> serde::de::Deserialize<'de>` is not implemented for `FooPlaceholders`
90
90
|
91
91
= note: for local types consider adding `#[derive(serde::Deserialize)]` to your `FooPlaceholders` type
92
92
= note: for types from other crates check whether the crate offers a `serde` feature flag
0 commit comments