[−][src]Static rustc_ap_rustc_session::lint::builtin::CONFLICTING_REPR_HINTS
pub static CONFLICTING_REPR_HINTS: &Lint
The conflicting_repr_hints
lint detects repr
attributes with
conflicting hints.
Example
ⓘThis example deliberately fails to compile
#[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.