2020-01-28 03:28:11 -06:00
|
|
|
error: non-binding let on a synchronization lock
|
2021-12-06 05:33:31 -06:00
|
|
|
--> $DIR/let_underscore_lock.rs:9:5
|
2020-01-28 03:28:11 -06:00
|
|
|
|
|
2021-12-06 05:33:31 -06:00
|
|
|
LL | let _ = p_m.lock();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: consider using an underscore-prefixed named binding or dropping explicitly with `std::mem::drop`
|
2022-10-23 09:04:50 -05:00
|
|
|
= note: `-D clippy::let-underscore-lock` implied by `-D warnings`
|
2021-12-06 05:33:31 -06:00
|
|
|
|
|
|
|
error: non-binding let on a synchronization lock
|
2022-10-23 09:04:50 -05:00
|
|
|
--> $DIR/let_underscore_lock.rs:12:5
|
2021-12-06 05:33:31 -06:00
|
|
|
|
|
|
|
|
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
|
2022-10-23 09:04:50 -05:00
|
|
|
--> $DIR/let_underscore_lock.rs:15:5
|
2021-12-06 05:33:31 -06:00
|
|
|
|
|
|
|
|
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
|
2022-10-23 09:04:50 -05:00
|
|
|
--> $DIR/let_underscore_lock.rs:16:5
|
2021-12-06 05:33:31 -06:00
|
|
|
|
|
|
|
|
LL | let _ = p_rw.write();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: consider using an underscore-prefixed named binding or dropping explicitly with `std::mem::drop`
|
|
|
|
|
2022-10-23 09:04:50 -05:00
|
|
|
error: aborting due to 4 previous errors
|
2020-01-28 03:28:11 -06:00
|
|
|
|