Skip to content

ICE with invalid for loop: "ident only path should have been covered already" #23929

Closed
@theemathas

Description

@theemathas

Code:

fn main() {
    for thing(x[]) {
    }
}

Error:

<anon>:2:12: 2:13 error: internal compiler error: ident only path should have been covered already
<anon>:2    for thing(x[]) {
                      ^
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
note: run with `RUST_BACKTRACE=1` for a backtrace
thread 'rustc' panicked at 'Box<Any>', /home/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-linux/build/src/libsyntax/diagnostic.rs:130

playpen

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