-
Notifications
You must be signed in to change notification settings - Fork 14k
Closed
Labels
A-metadataArea: Crate metadataArea: Crate metadataI-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
Milestone
Description
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...
Metadata
Metadata
Assignees
Labels
A-metadataArea: Crate metadataArea: Crate metadataI-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️