Closed
Description
This might not actually be a regression an instead the code may have previously erroneously compiled. I cannot find an an open issue obviously related to this though.
As you can see here this code does not compile with a "borrowed value does not live long enough" where it did previously. This comes from a call to diff::diff
which has this signature.
The error message states that n
may be dropped while the borrow in the next param state
is still active. This fails to compile on both 1.50 and 1.49 if the param state
is move to a local variable.
@rustbot modify labels: +regression-from-stable-to-beta