3 ms·
You're looking for blocks-as-expressions, e.g. the following is valid Rust: let x = { whatever; 5 }; // assigns 5 to x
by kibwen 2y ago
You're looking for blocks-as-expressions, e.g. the following is valid Rust:
let x = {
whatever;
5
}; // assigns 5 to x