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
error: implementation of `FromForm` is not general enough
--> src/bin/main-report.rs:24:1
|
24 | #[get("/foo_vec_str?<queries>")]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ implementation of `FromForm` is not general enough
|
= note: `&'0str` must implement `FromForm<'1>`,for any two lifetimes `'0` and `'1`...
= note: ...but it actually implements `FromForm<'2>`,for some specific lifetime `'2`
= note: this error originates in the attribute macro `get` (in Nightly builds, run with -Z macro-backtrace for more info)
Only the last one cannot be compiled, and the error message is maximally unhelpful.
The text was updated successfully, but these errors were encountered:
I've tracked the issue down to a rustc issue (rust-lang/rust#69663) and managed to apply a workaround (rust-lang/rust#57478 (comment)) on that example expanded with cargo-expand and compiled manually. I can try to make a PR to change the code generation for the route macros so that the error doesn't show up.
SergioBenitez
added
bug
Deviation from the specification or expected behavior
upstream
An unresolvable issue: an upstream dependency bug
and removed
triage
A bug report being investigated
labels
Aug 25, 2021
Compiler and crate version:
Here's some example code:
The compiler doesn't like this code:
Only the last one cannot be compiled, and the error message is maximally unhelpful.
The text was updated successfully, but these errors were encountered: