Skip to content

#[derive(Copy="something")] should be rejected #21435

Closed
@aochagavia

Description

@aochagavia

This compiles:

#[derive(Clone="2", Show(Wrong))]
struct MyStruct;

Other wrong attributes:

#[deprecated(Very, Wrong)]
#[test="something"]
#[test(Wrong)]
#[stable(Wrong)]
#[unstable(Wrong)]

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-diagnosticsArea: Messages for errors, warnings, and lintsE-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.P-lowLow priority

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions