Skip to content

Expression attribute duplication #3313

Closed
@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

    blockedBlocked on rustc, an RFC, etc.bugPanic, non-idempotency, invalid code, etc.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions