Skip to content

Document that @ pattern can now introduce new bindings #148

Closed
@maxwase

Description

@maxwase

Since Rust 1.56.0 you can run this code:

fn main() {
    let a @ b @ c = 1;
    println!("{} {} {}", a, b, c); // 1 1 1
}

PR
playground

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions