summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/let_underscore_lock.stderr
blob: f137d4112092d9fce7591817f0356958ba85f179 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
error: non-binding `let` on a synchronization lock
  --> $DIR/let_underscore_lock.rs:9:5
   |
LL |     let _ = p_m.lock();
   |     ^^^^^^^^^^^^^^^^^^^
   |
   = help: consider using an underscore-prefixed named binding or dropping explicitly with `std::mem::drop`
   = note: `-D clippy::let-underscore-lock` implied by `-D warnings`

error: non-binding `let` on a synchronization lock
  --> $DIR/let_underscore_lock.rs:12:5
   |
LL |     let _ = p_m1.lock();
   |     ^^^^^^^^^^^^^^^^^^^^
   |
   = help: consider using an underscore-prefixed named binding or dropping explicitly with `std::mem::drop`

error: non-binding `let` on a synchronization lock
  --> $DIR/let_underscore_lock.rs:15:5
   |
LL |     let _ = p_rw.read();
   |     ^^^^^^^^^^^^^^^^^^^^
   |
   = help: consider using an underscore-prefixed named binding or dropping explicitly with `std::mem::drop`

error: non-binding `let` on a synchronization lock
  --> $DIR/let_underscore_lock.rs:16:5
   |
LL |     let _ = p_rw.write();
   |     ^^^^^^^^^^^^^^^^^^^^^
   |
   = help: consider using an underscore-prefixed named binding or dropping explicitly with `std::mem::drop`

error: aborting due to 4 previous errors