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 upExpressing variant lifetimes with trait objects is tricky #42984
Comments
This comment has been minimized.
This comment has been minimized.
|
Ah, changing it to |
aidanhs
closed this
Jun 30, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
aidanhs commentedJun 30, 2017
https://is.gd/xCZ1UF
This does not compile with:
But changing it to a struct with an impl works - https://is.gd/2OM3ud
Is there a way to express this? I've been fighting with it for a little while, so if there is I suspect there could be some diagnostic improvements.