2017-06-23 17:43:35 -07:00
|
|
|
error[E0308]: mismatched types
|
|
|
|
--> $DIR/issue-20862.rs:12:5
|
|
|
|
|
|
2017-06-24 00:57:39 -07:00
|
|
|
11 | fn foo(x: i32) {
|
2017-06-24 19:28:43 -07:00
|
|
|
| - 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);
|
2018-01-15 05:18:06 -08:00
|
|
|
| ^^^^^^^^^ not a function
|
2017-06-23 17:43:35 -07:00
|
|
|
|
2017-07-02 16:09:09 +03: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"
|