]> git.lizzy.rs Git - rust.git/blob - tests/ui/deriving/derive-partialord-correctness.rs
Auto merge of #107843 - bjorn3:sync_cg_clif-2023-02-09, r=bjorn3
[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 }