3 ms·
Rust's ownership system would prevent example 5 from working (because you have to move the instance into the set). The borrow checker is about validating that
by masklinn 6y ago
Rust's ownership system would prevent example 5 from working (because you have to move the instance into the set).
The borrow checker is about validating that references don't outlive their target, and R^W.
- nyanpasu64 6y agoOops.