Skip to content

ICE for vec.iter() with unbounded element type #7813

Closed
@huonw

Description

@huonw
fn main() {
    let v = &[];
    let it = v.iter();
}
vec-ice.rs:3:13: 3:14 error: internal compiler error: borrow-vec associated with bad sty: &ty_err
vec-ice.rs:3     let it = v.iter();
                          ^

(Doesn't happen with .slice.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    E-needs-testCall for participation: An issue has been fixed and does not reproduce, but no test has been added.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