4 #![deny(absurd_extreme_comparisons)]
5 #![allow(unused, eq_op, no_effect, unnecessary_operation, needless_pass_by_value)]
71 // this is handled by unit_cmp
75 use std::cmp::{Ordering, PartialEq, PartialOrd};
77 #[derive(PartialEq, PartialOrd)]
80 impl PartialEq<u32> for U {
81 fn eq(&self, other: &u32) -> bool {
82 self.eq(&U(*other as u64))
85 impl PartialOrd<u32> for U {
86 fn partial_cmp(&self, other: &u32) -> Option<Ordering> {
87 self.partial_cmp(&U(*other as u64))
91 pub fn foo(val: U) -> bool {