Beta regression with lifetime inference #29979
Labels
regression-from-stable-to-beta
Performance or correctness regression from stable to beta.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I'm unsure if this issue is specifically related to
Borrow
orHashMap::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
Travis outputs for linked PR
cc @nikomatsakis @brson
The text was updated successfully, but these errors were encountered: