Skip to content

ICE with closure in constant #27268

Closed
Closed
@eefriedman

Description

@eefriedman
fn main() {
    const C: &'static Fn() = &||{};
}
error: internal compiler error: no type for node 15: expr { } (id=15) in fcx
note: the compiler unexpectedly panicked. this is a bug.

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