Skip to content

ICE: Explicit deref of non-derefable type: ! #17373

Closed
@mahkoh

Description

@mahkoh
fn main() {
    *(fail!()) = fail!();
}
test.rs:2:5: 2:15 error: internal compiler error: Explicit deref of non-derefable type: !
test.rs:2     *(fail!()) = fail!();
              ^~~~~~~~~~

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