1 error: non-binding let on a synchronization lock
2 --> $DIR/let_underscore_lock.rs:9: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:10: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:11: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:12: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:13: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:14: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: non-binding let on a synchronization lock
51 --> $DIR/let_underscore_lock.rs:23:5
53 LL | let _ = p_m.lock();
56 = help: consider using an underscore-prefixed named binding or dropping explicitly with `std::mem::drop`
58 error: non-binding let on a synchronization lock
59 --> $DIR/let_underscore_lock.rs:26:5
61 LL | let _ = p_m1.lock();
62 | ^^^^^^^^^^^^^^^^^^^^
64 = help: consider using an underscore-prefixed named binding or dropping explicitly with `std::mem::drop`
66 error: non-binding let on a synchronization lock
67 --> $DIR/let_underscore_lock.rs:29:5
69 LL | let _ = p_rw.read();
70 | ^^^^^^^^^^^^^^^^^^^^
72 = help: consider using an underscore-prefixed named binding or dropping explicitly with `std::mem::drop`
74 error: non-binding let on a synchronization lock
75 --> $DIR/let_underscore_lock.rs:30:5
77 LL | let _ = p_rw.write();
78 | ^^^^^^^^^^^^^^^^^^^^^
80 = help: consider using an underscore-prefixed named binding or dropping explicitly with `std::mem::drop`
82 error: aborting due to 10 previous errors