1 2 3 4 5 6 7 8 9
// check-pass fn main() { let _: i32 = (match "" { "+" => ::std::ops::Add::add, "-" => ::std::ops::Sub::sub, "<" => |a,b| (a < b) as i32, _ => unimplemented!(), })(5, 5); }