1 error: non-binding let on a synchronization lock
2 --> $DIR/let_underscore_lock.rs:6:9
4 LL | let _ = data.lock().unwrap();
5 | ^ ^^^^^^^^^^^^^^^^^^^^ this binding will immediately drop the value assigned to it
7 | this lock is not assigned to a binding and is immediately dropped
9 = note: `#[deny(let_underscore_lock)]` on by default
10 help: consider binding to an unused variable to avoid immediately dropping the value
12 LL | let _unused = data.lock().unwrap();
14 help: consider immediately dropping the value
16 LL | drop(data.lock().unwrap());
19 error: aborting due to previous error