Skip to content

run-pass/extern-pass-empty is probably a bogus thing to test #53859

Open
@pnkfelix

Description

@pnkfelix

The following code hits the lint that warns about trying to put #[repr(C)] on an empty struct.

#[repr(C)]
struct Empty;

(This seems like a bogus test that was caught by working on fixing #53764.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-FFIArea: Foreign function interface (FFI)A-reprArea: the `#[repr(stuff)]` attributeA-testsuiteArea: The testsuite used to check the correctness of rustcP-mediumMedium priorityS-blockedStatus: Blocked on something else such as an RFC or other implementation work.T-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