]> git.lizzy.rs Git - rust.git/blob - src/test/ui/block-result/issue-20862.rs
Auto merge of #86155 - alexcrichton:abort-on-unwind, r=nikomatsakis
[rust.git] / src / test / ui / block-result / issue-20862.rs
1 fn foo(x: i32) {
2     |y| x + y
3 //~^ ERROR: mismatched types
4 }
5
6 fn main() {
7     let x = foo(5)(2);
8 //~^ ERROR: expected function, found `()`
9 }