//@ check-fail #[derive(PartialEq, Eq)] pub enum Value { Boolean(Option), Float(Option), //~ ERROR the trait bound `f64: Eq` is not satisfied } fn main() { let a = Value::Float(Some(f64::NAN)); assert!(a == a); }