Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

std::ptr::Unique requires T to be sized #22140

Closed
RalfJung opened this issue Feb 10, 2015 · 1 comment
Closed

std::ptr::Unique requires T to be sized #22140

RalfJung opened this issue Feb 10, 2015 · 1 comment

Comments

@RalfJung
Copy link
Member

std::ptr::Unique requires it's type parameter T to be sized. That means, for example, that it is not possible to use Unique to send a "*mut[i32]" to a thread, as [i32] is not sized. kimundi suggested on IRC that probably, the "?Sized" has simply been forgotten here.

@Kimundi
Copy link
Member

Kimundi commented Feb 11, 2015

Fixed in #22142

@Kimundi Kimundi closed this as completed Feb 11, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants