#![allow(dead_code, deprecated, unused_variables, unused_mut)] #[derive(PartialEq, PartialOrd)] enum E { Top = 2, Bottom = 1, } fn main() { assert!(E::Bottom < E::Top); }