Skip to content

ICE: encode_symbol: id not found #3588

Closed
@eholk

Description

@eholk

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

No one assigned

    Labels

    A-metadataArea: Crate metadataI-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions