rust/tests/ui/suggestions/type-ascription-instead-of-...

14 lines
331 B
Plaintext

error: expected identifier, found `:`
--> $DIR/type-ascription-instead-of-let.rs:7:13
|
LL | temp: i32 = fun(5i32);
| ^ expected identifier
|
help: you might have meant to introduce a new binding
|
LL | let temp: i32 = fun(5i32);
| +++
error: aborting due to 1 previous error