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 trait object can be stored in struct without lifetime #23410
Comments
huonw
added
A-traits
I-nominated
A-dst
labels
Mar 16, 2015
This comment has been minimized.
This comment has been minimized.
|
Isn't this RFC 599? |
This comment has been minimized.
This comment has been minimized.
|
I agree this is RFC 599. |
This comment has been minimized.
This comment has been minimized.
|
not-a-bug, (as designed), closing. |
pnkfelix
closed this
Mar 19, 2015
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
huonw commentedMar 16, 2015
It seems to me that this should be requiring a lifetime, e.g.
struct Wrapper<'a>(Foo + 'a);orstruct Wrapper(Foo + 'static);. However, it may be the intended behaviour too, nominating for clarification.