ICE on async_fn_in_trait when trait implementation misses a lifetime in different crates #120648
Labels
A-lifetimes
Area: Lifetimes / regions
C-bug
Category: This is a bug.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I was developing one trait in one crate, changing it to use a lifetime, and forgot to add it to the other crate's implementation.
The compiler shows de correct error message but breaks.
If I fix the code, adding the lifetime to the trait, de compiler works. If it is in the same crate also works.
Code
Repo with minimal reproduction
Meta
rustc --version --verbose
:Error output
Backtrace
The text was updated successfully, but these errors were encountered: