-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.regression-from-stable-to-betaPerformance or correctness regression from stable to beta.Performance or correctness regression from stable to beta.
Description
I'm unsure if this issue is specifically related to Borrow
or HashMap::get
but this playpen works on current stable (1.4), but fails on both beta and nightly.
The issue can be fixed with a type annotation in the simple case, as shown on playpen if you uncomment the line above the failure, so I assume failure is not intended by some change in lifetime rules. (Additionally, the error message itself doesn't help lead a user to the solution here :( )
But, I've got a more complicated manifestation which I've been unable to solve with type-hints so I think it's worth a look at: seanmonstar/unicase#6
Metadata
Metadata
Assignees
Labels
T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.regression-from-stable-to-betaPerformance or correctness regression from stable to beta.Performance or correctness regression from stable to beta.