3 ms·
See also https://doc.rust-lang.org/stable/reference/statements.html https://doc.rust-lang.org/stable/reference/statements.html on what statements are. Basicall
by chrismorgan 6y ago
See also https://doc.rust-lang.org/stable/reference/statements.html https://doc.rust-lang.org/stable/reference/statements.html on what statements are.
Basically, the only thing that is a statement and can’t be an expression is `let pattern = expression;`.
- estebank 6y agoAnd even that will likely change in the future, letting you write things like if some_bool && let pat = expr {}