]> git.lizzy.rs Git - rust.git/blob - tests/ui/closures/issue-46742.rs
Rollup merge of #107068 - mejrs:use_derive, r=estebank
[rust.git] / tests / ui / closures / issue-46742.rs
1 // check-pass
2 fn main() {
3     let _: i32 = (match "" {
4         "+" => ::std::ops::Add::add,
5         "-" => ::std::ops::Sub::sub,
6         "<" => |a,b| (a < b) as i32,
7         _ => unimplemented!(),
8     })(5, 5);
9 }