We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb2a829 commit 9e5bdb7Copy full SHA for 9e5bdb7
tests/ui/consts/const-float-bits-conv.rs
@@ -136,7 +136,7 @@ fn f128() {
136
const_assert!(f128::from_bits(0x40029000000000000000000000000000), 12.5);
137
const_assert!(f128::from_le_bytes(0x40029000000000000000000000000000u128.to_le_bytes()), 12.5);
138
const_assert!(f128::from_bits(0x40094e40000000000000000000000000), 1337.0);
139
- const_assert!(f128::from_ne_bytes(0x40094e40000000000000000000000000u128.to_ne_bytes()), 1337.0);
+ assert_eq!(f128::from_ne_bytes(0x40094e40000000000000000000000000u128.to_ne_bytes()), 1337.0);
140
const_assert!(f128::from_bits(0xc002c800000000000000000000000000), -14.25);
141
}
142
0 commit comments