Skip to content

Precedence of as #4598

@sanxiyn

Description

@sanxiyn

Currently, as is higher precedence than + and - but lower precedence than * and / and %. This is weird. In C, as is higher precedence than all binary operators.
#1717 increased precedence of as to how it is in C, but it got changed after that (when? why?).

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-grammarArea: The grammar of Rust

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions