ruwuma/crates/ruma-common/tests/it/api/ui/serde-flatten-response-body.stderr
Kévin Commaille 4e1b646050 api: Update trybuild output
Some wording has changed and warnings are added because of the `unexpected_cfgs` lint.
2025-02-16 15:13:55 -05:00

33 lines
1.7 KiB
Text

error: Use `#[ruma_api(body)]` to represent the JSON body as a single field
--> tests/it/api/ui/serde-flatten-response-body.rs:28:5
|
28 | / #[serde(flatten)]
29 | | pub foo: CustomResponseBody,
| |_______________________________^
error[E0277]: the trait bound `Response: IncomingResponse` is not satisfied
--> tests/it/api/ui/serde-flatten-response-body.rs:23:1
|
23 | #[request]
| ^^^^^^^^^^ the trait `IncomingResponse` is not implemented for `Response`
|
note: required by a bound in `ruma_common::api::OutgoingRequest::IncomingResponse`
--> src/api.rs
|
| type IncomingResponse: IncomingResponse<EndpointError = Self::EndpointError>;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `OutgoingRequest::IncomingResponse`
= note: this error originates in the derive macro `::ruma_common::exports::ruma_macros::Request` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0277]: the trait bound `Response: OutgoingResponse` is not satisfied
--> tests/it/api/ui/serde-flatten-response-body.rs:23:1
|
23 | #[request]
| ^^^^^^^^^^ the trait `OutgoingResponse` is not implemented for `Response`
|
= help: the trait `OutgoingResponse` is implemented for `MatrixError`
note: required by a bound in `ruma_common::api::IncomingRequest::OutgoingResponse`
--> src/api.rs
|
| type OutgoingResponse: OutgoingResponse;
| ^^^^^^^^^^^^^^^^ required by this bound in `IncomingRequest::OutgoingResponse`
= note: this error originates in the derive macro `::ruma_common::exports::ruma_macros::Request` (in Nightly builds, run with -Z macro-backtrace for more info)