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
In this code the keep doesn't have implicitly the same lifetime as 'a, it has a different lifetime, that's anonymous. So that code compiles and works correctly.
This ER was suggested by both my coding experience with rust, and the code changes in: #91580
There functions like this one have lifetimes that aren't necessary, but rustc isn't spotting them:
In code like this rustc could warn that the 'b lifetime is not needed:
(Currently rustc also doesn't spot that the 'keep' function argument doesn't need to be &mut).
The text was updated successfully, but these errors were encountered: