Skip to content

ICE: borrow-vec associated with bad sty: &ty_err #10821

Closed
@ghost

Description

The following code:

fn main() {
    [].iter();
}

results in the following compiler error:

test.rs:2:1: 2:3 error: internal compiler error: borrow-vec associated with bad sty: &ty_err
This message reflects a bug in the Rust compiler. 
We would appreciate a bug report: https://github.com/mozilla/rust/wiki/HOWTO-submit-a-Rust-bug-report
test.rs:2       [].iter();
                ^~
task 'rustc' failed at 'explicit failure', /home/sami/Programmes/rust-git/src/rust/src/libsyntax/diagnostic.rs:76
task '<main>' failed at 'explicit failure', /home/sami/Programmes/rust-git/src/rust/src/librustc/lib.rs:396

I’m using revision df41115 (2013-12-01), with c6e934f cherry-picked to make make install work (pull request 10753, now merged into master).

Metadata

Metadata

Assignees

No one assigned

    Labels

    I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions