Skip to content

Wrong inferred type in while and if with block conditions #11561

@lnicola

Description

@lnicola
fn main() {
    while { true } {}
       // ^ Expected (), got bool
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions