mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-15 01:55:03 +00:00
36 lines
1.2 KiB
Plaintext
36 lines
1.2 KiB
Plaintext
error: non-binding `let` on a synchronization lock
|
|
--> $DIR/let_underscore_lock.rs:10: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:13: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:16: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:17: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
|
|
|