"Cannot infer appropriate lifetime" points at associated const of type Option<!>
#54378
Labels
A-lifetimes
Area: Lifetimes / regions
E-needs-test
Call for participation: An issue has been fixed and does not reproduce, but no test has been added.
I have no idea what is going on in this piece of code:
when it fails to compile saying
I would expect the code to be accepted. How can something of type
Option<!>
have problems inferring a lifetime?!? The error is entirely not helpful.Curiously, if I remove the
'a + 'mir
bound on'tcx
in theimpl
, this compiles. Removing a bound that's already implied by the type itself should not make a difference, right?The text was updated successfully, but these errors were encountered: