error[E0573]: expected type, found function `f` --> $DIR/type-ascription-with-fn-call.rs:15:5 | LL | f() : | - help: did you mean to use `;` here instead? LL | f(); //~ ERROR expected type, found function | ^^^ | | | not a type | expecting a type here because of type ascription error: aborting due to previous error For more information about this error, try `rustc --explain E0573`.