On 09/11/13 09:44, Patrick Walton wrote:
On 11/8/13 2:43 PM, Huon Wilson wrote:
This will make transmuting ~ to get a * (e.g., to allocate memory for
storage in an Rc, with automatic clean-up by transmuting back to ~ on
destruction) harder to get right, won't it?

You'll want a `Sized` bound, I think.

Patrick

_______________________________________________
Rust-dev mailing list
Rust-dev@mozilla.org
https://mail.mozilla.org/listinfo/rust-dev

Ah, of course. Presumably this means that `Rc<Trait>` or `Rc<str>` would require a separate code-path?


Huon
_______________________________________________
Rust-dev mailing list
Rust-dev@mozilla.org
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to