summaryrefslogtreecommitdiffstats
path: root/src/test/ui/destructuring-assignment/warn-unused-duplication.stderr
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/test/ui/destructuring-assignment/warn-unused-duplication.stderr15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/test/ui/destructuring-assignment/warn-unused-duplication.stderr b/src/test/ui/destructuring-assignment/warn-unused-duplication.stderr
new file mode 100644
index 000000000..1df7a5f22
--- /dev/null
+++ b/src/test/ui/destructuring-assignment/warn-unused-duplication.stderr
@@ -0,0 +1,15 @@
+warning: value assigned to `a` is never read
+ --> $DIR/warn-unused-duplication.rs:9:6
+ |
+LL | (a, a) = (0, 1);
+ | ^
+ |
+note: the lint level is defined here
+ --> $DIR/warn-unused-duplication.rs:3:9
+ |
+LL | #![warn(unused_assignments)]
+ | ^^^^^^^^^^^^^^^^^^
+ = help: maybe it is overwritten before being read?
+
+warning: 1 warning emitted
+