// run-pass #![allow(dead_code)] // pretty-expanded FIXME #23616 pub trait NumCast: Sized { fn from(i: i32) -> Option; } pub trait NumExt: NumCast + PartialOrd { } fn greater_than_one(n: &T) -> bool { *n > NumCast::from(1).unwrap() } pub fn main() {}