mirror of
https://github.com/rust-lang/rust.git
synced 2026-06-01 14:10:03 +03:00
7c8b9413b8
Example about explicit mutex dropping Fixes #67457. Following the remarks made in #73074, I added an example on the main `Mutex` type, with a situation where there is mutable data and a computation result. In my testing it is effectively needed to explicitly drop the lock, else it deadlocks. r? @dtolnay because you were the one to review the previous PR.