Skip to content

ICE in named break from within proc #19331

Closed
@nstoddard

Description

@nstoddard

This code results in an ICE:

fn main() {
  'outer: loop {
    spawn(proc() {
      loop {
        break 'outer;
      }
    });
  }
}

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