Could you provide a code sample that causes this error?

On Tue, Apr 15, 2014 at 6:28 AM, Artella Coding <
artella.cod...@googlemail.com> wrote:

>
> Currently if I try to specify lifetimes in the return types of overloaded
> operators like Index ([]), I get an error message :
>
> "method `index` has an incompatible type for trait: expected concrete
> lifetime, but found bound lifetime parameter &"
>
> Why has this restriction been placed, given that I can write custom
> functions which can have bounded lifetimes specifications in the return
> type?
>
> Thanks
>
> _______________________________________________
> Rust-dev mailing list
> Rust-dev@mozilla.org
> https://mail.mozilla.org/listinfo/rust-dev
>
>
_______________________________________________
Rust-dev mailing list
Rust-dev@mozilla.org
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to