Not sure what you mean by "`self` on `&T`".   I thought traits can
take self by-value?


On Dec 1, 2013, at 1:22 PM, Patrick Walton <[email protected]> wrote:

> On 12/1/13 7:42 AM, Vadim wrote:
>> Once fn()'s should consume their environment, perhaps it should be
>> simply "self", where Self is non-copyable, so it gets moved out?
>
> Doesn't work unless we have unboxed closures, as you can't call a method that 
> takes `self` on `&T`.
>
> Patrick
>
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to