4 ms·
There's a difference between let _ = <expr>; and: let _x = <expr>; The first one drops ownership over the variable right after `let`, and the second
by da-x 7y ago
There's a difference between
let _ = <expr>;
and:
let _x = <expr>;
The first one drops ownership over the variable right after `let`, and the second drops in the end of the scope where the `let` is contained. It was mentioned in an open Rust github issue, but I can't seem to find it.