Skip to content

poem: type annotations needed #196

Open
@lcnr

Description

@lcnr
[INFO] [stdout] error[E0282]: type annotations needed
[INFO] [stdout]    --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/poem-3.0.4/src/route/router_method.rs:186:33
[INFO] [stdout]     |
[INFO] [stdout] 186 | ...                   let mut resp = self.call(req).await?;
[INFO] [stdout]     |                           ^^^^^^^^
[INFO] [stdout] 187 | ...                   resp.set_body(());
[INFO] [stdout]     |                            -------- type must be known at this point
[INFO] [stdout]     |
[INFO] [stdout] help: consider giving `resp` an explicit type
[INFO] [stdout]     |
[INFO] [stdout] 186 |                             let mut resp: /* Type */ = self.call(req).await?;
[INFO] [stdout]     |                                         ++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0271]: type mismatch resolving `impl Future<Output = Result<<RouteMethod as Endpoint>::Output, Error>> + Send normalizes-to _`
[INFO] [stdout]    --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/poem-3.0.4/src/route/router_method.rs:186:44
[INFO] [stdout]     |
[INFO] [stdout] 186 | ...                   let mut resp = self.call(req).await?;
[INFO] [stdout]     |                                      ^^^^^^^^^^^^^^ types differ
[INFO] [stdout] 

Metadata

Metadata

Assignees

Labels

from-craterA regression found via a crater run, not part of our test suite

Type

No type

Projects

Status

todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions