While trying to combine the ReaderUtil iface in io.rs with the traitless impl on ReaderUtil, I've been running into an ICE. I've reduced the test case down to the following:
trait Reader {
}
trait ReaderUtil {
fn read_chars(n: uint) -> ~[char];
}
impl<T: Reader> T : ReaderUtil {
fn read_chars(_n: uint) -> ~[char] {
// returns the (consumed offset, n_req), appends characters to &chars
fn chars_from_bytes() -> (uint, uint) {
(0, 0)
}
~[]
}
}
It seems to be the nested chars_from_bytes that's causing problems...
While trying to combine the
ReaderUtiliface inio.rswith the traitless impl onReaderUtil, I've been running into an ICE. I've reduced the test case down to the following:It seems to be the nested
chars_from_bytesthat's causing problems...