Documentation:Mutex::lock in std::sync - Rust
it says that
This function might panic when called if the lock is already held by the current thread.
But in fact, it's not true:
the program runs indefinitely.
It's really incomprehensible behavior for me, maybe I don't understand something?