Skip to content

list of place expressions is incomplete #1645

@lolbinarycat

Description

@lolbinarycat

several control flow expressions are actually place expressions:

fn main() {
    let arr = [10, 20];
    let arr_ref = &loop { break arr[0]; };
    dbg!(arr_ref);
}

i've tested if and loop, doubtless there are many more.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions