Skip to content

Expression attribute duplication #3313

@ghost

Description

input

Playground

#![feature(stmt_expr_attributes)]

fn main() {
    let foo;
    #[must_use]
    foo = false;
}

output

#![feature(stmt_expr_attributes)]

fn main() {
    let foo;
    #[must_use]
    #[must_use]
    foo = false;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: this is a bug; use also I-* labels for specific bug kinds, e.g. I-non-idempotency or I-ICES-blockedStatus: blocked on rustc, an RFC, impl work, etc.; please also add a block reason label

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions