Skip to content

No error on malformed repr attributes #51376

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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