]> git.lizzy.rs Git - rust.git/blob - tests/ui/deriving/derive-partialord-correctness.rs
Rollup merge of #107551 - fee1-dead-contrib:rm_const_fnmut_helper, r=oli-obk
[rust.git] / tests / ui / deriving / derive-partialord-correctness.rs
1 // run-pass
2 // Original issue: #49650
3
4 #[derive(PartialOrd, PartialEq)]
5 struct FloatWrapper(f64);
6
7 fn main() {
8     assert!((0.0 / 0.0 >= 0.0) == (FloatWrapper(0.0 / 0.0) >= FloatWrapper(0.0)))
9 }