On Wed, Apr 16, 2014 at 12:21:20AM -0400, comex wrote: > If I have x: &[char, ..5], I can use ~*x to get an owned version > without a lot of typing. Would it be too insane to have that work for > &[char] or &str with DST?
Something like this will work, yes. It'll probably look more like: Box::new(*x) This will be described in some of the RFCs that are coming up soon. Niko _______________________________________________ Rust-dev mailing list Rust-dev@mozilla.org https://mail.mozilla.org/listinfo/rust-dev