summaryrefslogtreecommitdiffstats
path: root/src/test/ui/lint/let_underscore/let_underscore_lock.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/lint/let_underscore/let_underscore_lock.stderr')
-rw-r--r--src/test/ui/lint/let_underscore/let_underscore_lock.stderr20
1 files changed, 0 insertions, 20 deletions
diff --git a/src/test/ui/lint/let_underscore/let_underscore_lock.stderr b/src/test/ui/lint/let_underscore/let_underscore_lock.stderr
deleted file mode 100644
index fb58af0a4..000000000
--- a/src/test/ui/lint/let_underscore/let_underscore_lock.stderr
+++ /dev/null
@@ -1,20 +0,0 @@
-error: non-binding let on a synchronization lock
- --> $DIR/let_underscore_lock.rs:6:9
- |
-LL | let _ = data.lock().unwrap();
- | ^ ^^^^^^^^^^^^^^^^^^^^ this binding will immediately drop the value assigned to it
- | |
- | this lock is not assigned to a binding and is immediately dropped
- |
- = note: `#[deny(let_underscore_lock)]` on by default
-help: consider binding to an unused variable to avoid immediately dropping the value
- |
-LL | let _unused = data.lock().unwrap();
- | ~~~~~~~
-help: consider immediately dropping the value
- |
-LL | drop(data.lock().unwrap());
- | ~~~~~ +
-
-error: aborting due to previous error
-