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

22 lines
628 B
Plaintext
Raw Normal View History

2017-06-23 17:43:35 -07:00
error[E0308]: mismatched types
--> $DIR/issue-20862.rs:12:5
|
11 | fn foo(x: i32) {
| - possibly return type missing here?
2017-06-23 17:43:35 -07: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);
| ^^^^^^^^^ not a function
2017-06-23 17:43:35 -07:00
error: aborting due to 2 previous errors
2017-06-23 17:43:35 -07:00
2018-02-19 21:40:25 +01:00
You've got a few errors: E0308, E0618
If you want more information on an error, try using "rustc --explain E0308"