Skip to content

No error on malformed repr attributes #51376

Closed
@Mark-Simulacrum

Description

@Mark-Simulacrum
#[repr]
struct Foo(u16);

fn main() {}

This compiles without any error, including one about the attribute not being used, even though there should be such a warning.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-diagnosticsArea: Messages for errors, warnings, and lintsT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions