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 upUnboxed closure: infer `move` when passing an unboxed closure to Fn* + Send #18799
Comments
huonw
added
the
A-closures
label
Nov 9, 2014
This comment has been minimized.
This comment has been minimized.
|
It seems this would be better suited by tying to |
This comment has been minimized.
This comment has been minimized.
|
I am not sure whether to implement this inference or not. See thoughts here: http://discuss.rust-lang.org/t/on-the-topic-of-inferring-move-closures/1438 And yes @huonw I've been assuming we would tie it to 'static, not |
This comment has been minimized.
This comment has been minimized.
|
Conclusion from the thread was "won't fix". |
nikomatsakis
closed this
Mar 5, 2015
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
carllerche commentedNov 9, 2014
It would be really amazing if in the following snippet, the "move" was inferred by the fact that the closure is passed as a Fn* + Send. Aka, that move was inferred by the Send trait.