]> git.lizzy.rs Git - rust.git/blob - tests/ui/mut_mutex_lock.stderr
d521ebb56c4310970de892bff615a2312c0d5132
[rust.git] / tests / ui / mut_mutex_lock.stderr
1 error: calling `&mut Mutex::lock` unnecessarily locks an exclusive (mutable) reference
2   --> $DIR/mut_mutex_lock.rs:9:21
3    |
4 LL |     let mut value = value_mutex.lock().unwrap();
5    |                     ^^^^^^^^^^^^^^^^^^
6    |
7    = note: `-D clippy::mut-mutex-lock` implied by `-D warnings`
8    = help: use `&mut Mutex::get_mut` instead
9
10 error: aborting due to previous error
11