The unions section has an example matching on a float literal, which triggers the rust-lang/rust#41620 compatibility lint:
#[repr(u32)]enumTag{I,F}#[repr(C)]unionU{i:i32,f:f32,}#[repr(C)]structValue{tag:Tag,u:U,}fnis_zero(v:Value) -> bool{unsafe{match v {Value{tag:I,u:U{i:0}} => true,Value{tag:F,u:U{f:0.0}} => true,
_ => false,}}}
The unions section has an example matching on a float literal, which triggers the rust-lang/rust#41620 compatibility lint: