Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
The error message "error: expected item, found 'let'" is commonly encountered in Rust
when you mistakenly place a let
statement in an invalid location.
A let
statement can only be used …