CONFLICTING_REPR_HINTS in rustc_lint::builtin - Rust
Description: The `conflicting_repr_hints` lint detects `repr` attributes with conflicting hints.

Skip to main content

## CONFLICTING_REPR_HINTS

# Static CONFLICTING_REPR_HINTS

Source

    pub static CONFLICTING_REPR_HINTS: &'static Lint

Expand description

The `conflicting_repr_hints` lint detects `repr` attributes with conflicting hints.

#### §Example

ⓘ

    #[repr(u32, u64)]
    enum Foo {
        Variant1,
    }

{{produces}}

#### §Explanation

The compiler incorrectly accepted these conflicting representations in the past. This is a future-incompatible lint to transition this to a hard error in the future. See issue #68585 for more details.

To correct the issue, remove one of the conflicting hints.