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 upAbility to pass ownership of unsized types #990
Comments
This was referenced Mar 19, 2015
petrochenkov
added
the
T-lang
label
Jan 29, 2018
This comment has been minimized.
This comment has been minimized.
|
cc #1909 and rust-lang/rust#48055 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
nikomatsakis commentedMar 19, 2015
Currently you can't use unsized types as parameters or return values. There are good reasons to support this, including passing closures to fns and being able to write things like
Rc::new(*slice)whereslicehas typeBox<[T]>or what have you.Postponed RFCs: