On 2013-11-16, at 1:37, Tommi Tissari <[email protected]> wrote:
> But shouldn't the signature be: > fn cmp<T>(x: &[T], y: &[T]) -> bool Oh, wait I think I know what the answer to that question is going to be. The comparison trait requires the signature to be (&self, &Self) and since the pointer sigils seems to be part of the type in this language, the type Self is ~[T] and the signature has to be (&~[T], &~[T]). _______________________________________________ Rust-dev mailing list [email protected] https://mail.mozilla.org/listinfo/rust-dev
