We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c3ba654 commit 2116623Copy full SHA for 2116623
tests/ui/consts/const-float-bits-conv.rs
@@ -88,7 +88,7 @@ fn f128() {
88
const_assert!(f128::from_bits(0x40029000000000000000000000000000), 12.5);
89
const_assert!(f128::from_le_bytes(0x40029000000000000000000000000000u128.to_le_bytes()), 12.5);
90
const_assert!(f128::from_bits(0x40094e40000000000000000000000000), 1337.0);
91
- const_assert!(f128::from_ne_bytes(0x40094e40000000000000000000000000u128.to_ne_bytes()), 1337.0);
+ assert_eq!(f128::from_ne_bytes(0x40094e40000000000000000000000000u128.to_ne_bytes()), 1337.0);
92
const_assert!(f128::from_bits(0xc002c800000000000000000000000000), -14.25);
93
}
94
0 commit comments