Closed
Description
This code (playground):
fn foo() {}
fn bar() -> (i32, i32) {
foo() // missing semicolon
(0, 0)
}
gives the unhelpful error message:
error[E0618]: expected function, found `()`
--> src/main.rs:3:5
|
3 | / foo() // missing semicolon
4 | |
5 | | (0, 0)
| |__________^ not a function
Happens on 1.26.0-stable and 1.28.0-nightly (2018-05-23 29ffe51).