Skip to content

A run-pass test has conflicting repr hints #53857

Closed
@pnkfelix

Description

@pnkfelix

The following code hits the lint that warns about conflicting repr hints on a datatype.

#[repr(C)]
#[repr(simd)]
#[derive(Copy, Clone, Debug)]
pub struct char3(pub i8, pub i8, pub i8);
#[repr(C)]
#[repr(simd)]
#[derive(Copy, Clone, Debug)]
pub struct short3(pub i16, pub i16, pub i16);

(I'm just filing this ticket so I have something to point at from a PR for #53764.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-testsuiteArea: The testsuite used to check the correctness of rustc

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions