1 error: non-binding let on a synchronization lock
2 --> $DIR/let_underscore_lock.rs:7:5
7 = note: `-D clippy::let-underscore-lock` implied by `-D warnings`
8 = help: consider using an underscore-prefixed named binding or dropping explicitly with `std::mem::drop`
10 error: non-binding let on a synchronization lock
11 --> $DIR/let_underscore_lock.rs:8:5
13 LL | let _ = rw.read();
16 = help: consider using an underscore-prefixed named binding or dropping explicitly with `std::mem::drop`
18 error: non-binding let on a synchronization lock
19 --> $DIR/let_underscore_lock.rs:9:5
21 LL | let _ = rw.write();
24 = help: consider using an underscore-prefixed named binding or dropping explicitly with `std::mem::drop`
26 error: non-binding let on a synchronization lock
27 --> $DIR/let_underscore_lock.rs:10:5
29 LL | let _ = m.try_lock();
30 | ^^^^^^^^^^^^^^^^^^^^^
32 = help: consider using an underscore-prefixed named binding or dropping explicitly with `std::mem::drop`
34 error: non-binding let on a synchronization lock
35 --> $DIR/let_underscore_lock.rs:11:5
37 LL | let _ = rw.try_read();
38 | ^^^^^^^^^^^^^^^^^^^^^^
40 = help: consider using an underscore-prefixed named binding or dropping explicitly with `std::mem::drop`
42 error: non-binding let on a synchronization lock
43 --> $DIR/let_underscore_lock.rs:12:5
45 LL | let _ = rw.try_write();
46 | ^^^^^^^^^^^^^^^^^^^^^^^
48 = help: consider using an underscore-prefixed named binding or dropping explicitly with `std::mem::drop`
50 error: aborting due to 6 previous errors