Rustc fails to normalize trait functions that have late-bound lifetimes #109476
Labels
A-lifetimes
Area: Lifetimes / regions
A-trait-system
Area: Trait system
C-bug
Category: This is a bug.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I tried this code:
Playground link
I expected to see this happen: Successful compilation
Instead, this happened:
error[[E0195]](https://doc.rust-lang.org/stable/error_codes/E0195.html): lifetime parameters or bounds on method
foodo not match the trait declaration
A workaround to this issue is using associated generic type in impl, add trivial where clause
(): 'a
oradd dummy argument that uses the lifetime
Meta
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: