Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upBeta regression with lifetime inference #29979
Comments
sfackler
added
the
regression-from-stable-to-beta
label
Nov 22, 2015
This comment has been minimized.
This comment has been minimized.
|
This should be the same as #28853 |
arielb1
added
the
I-nominated
label
Nov 22, 2015
This comment has been minimized.
This comment has been minimized.
arielb1
added
the
T-compiler
label
Nov 22, 2015
This comment has been minimized.
This comment has been minimized.
|
@arielb1 Okay, should we close as duplicate? |
This comment has been minimized.
This comment has been minimized.
|
Closing per @arielb1 as dupe. |
brson
closed this
Nov 23, 2015
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Ryman commentedNov 22, 2015
I'm unsure if this issue is specifically related to
BorroworHashMap::getbut 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