mirror of
https://gitlab.com/msrd0/gotham-restful.git
synced 2025-02-22 20:52:27 +00:00
update trybuild tests
This commit is contained in:
parent
a5257608e3
commit
e206ab10eb
2 changed files with 36 additions and 14 deletions
|
@ -1,3 +1,14 @@
|
||||||
|
error[E0277]: the trait bound `FooParams: OpenapiType` is not satisfied
|
||||||
|
--> $DIR/invalid_params_ty.rs:15:16
|
||||||
|
|
|
||||||
|
15 | fn endpoint(_: FooParams) {
|
||||||
|
| ^^^^^^^^^ the trait `OpenapiType` is not implemented for `FooParams`
|
||||||
|
|
|
||||||
|
::: $WORKSPACE/src/endpoint.rs
|
||||||
|
|
|
||||||
|
| #[openapi_bound("Params: OpenapiType")]
|
||||||
|
| --------------------- required by this bound in `gotham_restful::EndpointWithSchema::Params`
|
||||||
|
|
||||||
error[E0277]: the trait bound `for<'de> FooParams: serde::de::Deserialize<'de>` is not satisfied
|
error[E0277]: the trait bound `for<'de> FooParams: serde::de::Deserialize<'de>` is not satisfied
|
||||||
--> $DIR/invalid_params_ty.rs:15:16
|
--> $DIR/invalid_params_ty.rs:15:16
|
||||||
|
|
|
|
||||||
|
@ -6,7 +17,7 @@ error[E0277]: the trait bound `for<'de> FooParams: serde::de::Deserialize<'de>`
|
||||||
|
|
|
|
||||||
::: $WORKSPACE/src/endpoint.rs
|
::: $WORKSPACE/src/endpoint.rs
|
||||||
|
|
|
|
||||||
| type Params: QueryStringExtractor<Body> + Sync;
|
| type Params: QueryStringExtractor<Body> + Clone + Sync;
|
||||||
| -------------------------- required by this bound in `gotham_restful::EndpointWithSchema::Params`
|
| -------------------------- required by this bound in `gotham_restful::EndpointWithSchema::Params`
|
||||||
|
|
||||||
error[E0277]: the trait bound `FooParams: StateData` is not satisfied
|
error[E0277]: the trait bound `FooParams: StateData` is not satisfied
|
||||||
|
@ -17,7 +28,7 @@ error[E0277]: the trait bound `FooParams: StateData` is not satisfied
|
||||||
|
|
|
|
||||||
::: $WORKSPACE/src/endpoint.rs
|
::: $WORKSPACE/src/endpoint.rs
|
||||||
|
|
|
|
||||||
| type Params: QueryStringExtractor<Body> + Sync;
|
| type Params: QueryStringExtractor<Body> + Clone + Sync;
|
||||||
| -------------------------- required by this bound in `gotham_restful::EndpointWithSchema::Params`
|
| -------------------------- required by this bound in `gotham_restful::EndpointWithSchema::Params`
|
||||||
|
|
||||||
error[E0277]: the trait bound `FooParams: StaticResponseExtender` is not satisfied
|
error[E0277]: the trait bound `FooParams: StaticResponseExtender` is not satisfied
|
||||||
|
@ -28,16 +39,16 @@ error[E0277]: the trait bound `FooParams: StaticResponseExtender` is not satisfi
|
||||||
|
|
|
|
||||||
::: $WORKSPACE/src/endpoint.rs
|
::: $WORKSPACE/src/endpoint.rs
|
||||||
|
|
|
|
||||||
| type Params: QueryStringExtractor<Body> + Sync;
|
| type Params: QueryStringExtractor<Body> + Clone + Sync;
|
||||||
| -------------------------- required by this bound in `gotham_restful::EndpointWithSchema::Params`
|
| -------------------------- required by this bound in `gotham_restful::EndpointWithSchema::Params`
|
||||||
|
|
||||||
error[E0277]: the trait bound `FooParams: OpenapiType` is not satisfied
|
error[E0277]: the trait bound `FooParams: Clone` is not satisfied
|
||||||
--> $DIR/invalid_params_ty.rs:15:16
|
--> $DIR/invalid_params_ty.rs:15:16
|
||||||
|
|
|
|
||||||
15 | fn endpoint(_: FooParams) {
|
15 | fn endpoint(_: FooParams) {
|
||||||
| ^^^^^^^^^ the trait `OpenapiType` is not implemented for `FooParams`
|
| ^^^^^^^^^ the trait `Clone` is not implemented for `FooParams`
|
||||||
|
|
|
|
||||||
::: $WORKSPACE/src/endpoint.rs
|
::: $WORKSPACE/src/endpoint.rs
|
||||||
|
|
|
|
||||||
| #[openapi_bound("Params: crate::OpenapiType")]
|
| type Params: QueryStringExtractor<Body> + Clone + Sync;
|
||||||
| ---------------------------- required by this bound in `gotham_restful::EndpointWithSchema::Params`
|
| ----- required by this bound in `gotham_restful::EndpointWithSchema::Params`
|
||||||
|
|
|
@ -1,3 +1,14 @@
|
||||||
|
error[E0277]: the trait bound `FooPlaceholders: OpenapiType` is not satisfied
|
||||||
|
--> $DIR/invalid_placeholders_ty.rs:15:16
|
||||||
|
|
|
||||||
|
15 | fn endpoint(_: FooPlaceholders) {
|
||||||
|
| ^^^^^^^^^^^^^^^ the trait `OpenapiType` is not implemented for `FooPlaceholders`
|
||||||
|
|
|
||||||
|
::: $WORKSPACE/src/endpoint.rs
|
||||||
|
|
|
||||||
|
| #[openapi_bound("Placeholders: OpenapiType")]
|
||||||
|
| --------------------------- required by this bound in `gotham_restful::EndpointWithSchema::Placeholders`
|
||||||
|
|
||||||
error[E0277]: the trait bound `for<'de> FooPlaceholders: serde::de::Deserialize<'de>` is not satisfied
|
error[E0277]: the trait bound `for<'de> FooPlaceholders: serde::de::Deserialize<'de>` is not satisfied
|
||||||
--> $DIR/invalid_placeholders_ty.rs:15:16
|
--> $DIR/invalid_placeholders_ty.rs:15:16
|
||||||
|
|
|
|
||||||
|
@ -6,7 +17,7 @@ error[E0277]: the trait bound `for<'de> FooPlaceholders: serde::de::Deserialize<
|
||||||
|
|
|
|
||||||
::: $WORKSPACE/src/endpoint.rs
|
::: $WORKSPACE/src/endpoint.rs
|
||||||
|
|
|
|
||||||
| type Placeholders: PathExtractor<Body> + Sync;
|
| type Placeholders: PathExtractor<Body> + Clone + Sync;
|
||||||
| ------------------- required by this bound in `gotham_restful::EndpointWithSchema::Placeholders`
|
| ------------------- required by this bound in `gotham_restful::EndpointWithSchema::Placeholders`
|
||||||
|
|
||||||
error[E0277]: the trait bound `FooPlaceholders: StateData` is not satisfied
|
error[E0277]: the trait bound `FooPlaceholders: StateData` is not satisfied
|
||||||
|
@ -17,7 +28,7 @@ error[E0277]: the trait bound `FooPlaceholders: StateData` is not satisfied
|
||||||
|
|
|
|
||||||
::: $WORKSPACE/src/endpoint.rs
|
::: $WORKSPACE/src/endpoint.rs
|
||||||
|
|
|
|
||||||
| type Placeholders: PathExtractor<Body> + Sync;
|
| type Placeholders: PathExtractor<Body> + Clone + Sync;
|
||||||
| ------------------- required by this bound in `gotham_restful::EndpointWithSchema::Placeholders`
|
| ------------------- required by this bound in `gotham_restful::EndpointWithSchema::Placeholders`
|
||||||
|
|
||||||
error[E0277]: the trait bound `FooPlaceholders: StaticResponseExtender` is not satisfied
|
error[E0277]: the trait bound `FooPlaceholders: StaticResponseExtender` is not satisfied
|
||||||
|
@ -28,16 +39,16 @@ error[E0277]: the trait bound `FooPlaceholders: StaticResponseExtender` is not s
|
||||||
|
|
|
|
||||||
::: $WORKSPACE/src/endpoint.rs
|
::: $WORKSPACE/src/endpoint.rs
|
||||||
|
|
|
|
||||||
| type Placeholders: PathExtractor<Body> + Sync;
|
| type Placeholders: PathExtractor<Body> + Clone + Sync;
|
||||||
| ------------------- required by this bound in `gotham_restful::EndpointWithSchema::Placeholders`
|
| ------------------- required by this bound in `gotham_restful::EndpointWithSchema::Placeholders`
|
||||||
|
|
||||||
error[E0277]: the trait bound `FooPlaceholders: OpenapiType` is not satisfied
|
error[E0277]: the trait bound `FooPlaceholders: Clone` is not satisfied
|
||||||
--> $DIR/invalid_placeholders_ty.rs:15:16
|
--> $DIR/invalid_placeholders_ty.rs:15:16
|
||||||
|
|
|
|
||||||
15 | fn endpoint(_: FooPlaceholders) {
|
15 | fn endpoint(_: FooPlaceholders) {
|
||||||
| ^^^^^^^^^^^^^^^ the trait `OpenapiType` is not implemented for `FooPlaceholders`
|
| ^^^^^^^^^^^^^^^ the trait `Clone` is not implemented for `FooPlaceholders`
|
||||||
|
|
|
|
||||||
::: $WORKSPACE/src/endpoint.rs
|
::: $WORKSPACE/src/endpoint.rs
|
||||||
|
|
|
|
||||||
| #[openapi_bound("Placeholders: crate::OpenapiType")]
|
| type Placeholders: PathExtractor<Body> + Clone + Sync;
|
||||||
| ---------------------------------- required by this bound in `gotham_restful::EndpointWithSchema::Placeholders`
|
| ----- required by this bound in `gotham_restful::EndpointWithSchema::Placeholders`
|
||||||
|
|
Loading…
Add table
Reference in a new issue