rust/tests/ui/type/type-ascription-with-fn-cal...

11 lines
393 B
Plaintext

error: statements are terminated with a semicolon
--> $DIR/type-ascription-with-fn-call.rs:3:10
|
LL | f() :
| ^ help: use a semicolon instead: `;`
|
= note: if you meant to annotate an expression with a type, the type ascription syntax has been removed, see issue #101728 <https://github.com/rust-lang/rust/issues/101728>
error: aborting due to 1 previous error