rust/src/test/ui/block-result/issue-20862.stderr

20 lines
499 B
Plaintext
Raw Normal View History

2017-06-24 00:43:35 +00:00
error[E0308]: mismatched types
--> $DIR/issue-20862.rs:12:5
|
11 | fn foo(x: i32) {
| - possibly return type missing here?
2017-06-24 00:43:35 +00:00
12 | |y| x + y
| ^^^^^^^^^ expected (), found closure
|
= note: expected type `()`
found type `[closure@$DIR/issue-20862.rs:12:5: 12:14 x:_]`
error[E0618]: expected function, found `()`
--> $DIR/issue-20862.rs:17:13
|
17 | let x = foo(5)(2);
| ^^^^^^^^^
error: aborting due to previous error(s)