4 ms·
I am pretty sure you can't actually construct such a type (at least not at the moment) so Rust sort of sidesteps the question.
by Jweb_Guru 11y ago
I am pretty sure you can't actually construct such a type (at least not at the moment) so Rust sort of sidesteps the question.
- Manishearth 11y agoIIRC you can.
- burntsushi 11y agoIt's early, so maybe I'm doing something stupid, but it looks like you can't! http://is.gd/9Y1HiS http://is.gd/9Y1HiS --- (I'm kind of surprised by the error message.)
- Rusky 11y agoI get this when I try something like `as Box<Read+Write>` error: only the builtin traits can be used as closure or object bounds [E0225]
- Manishearth 11y agoTIL; thanks :)