]> git.lizzy.rs Git - rust.git/blob - tests/ui/block-result/issue-20862.rs
Rollup merge of #107519 - joboet:raw_os_error_ty, r=Amanieu
[rust.git] / tests / 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 }