From 218caa410aa38c29984be31a5229b9fa717560ee Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 17 Apr 2024 14:19:13 +0200 Subject: Merging upstream version 1.68.2+dfsg1. Signed-off-by: Daniel Baumann --- .../warn-unused-duplication.stderr | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 tests/ui/destructuring-assignment/warn-unused-duplication.stderr (limited to 'tests/ui/destructuring-assignment/warn-unused-duplication.stderr') diff --git a/tests/ui/destructuring-assignment/warn-unused-duplication.stderr b/tests/ui/destructuring-assignment/warn-unused-duplication.stderr new file mode 100644 index 000000000..e16625136 --- /dev/null +++ b/tests/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); + | ^ + | + = help: maybe it is overwritten before being read? +note: the lint level is defined here + --> $DIR/warn-unused-duplication.rs:3:9 + | +LL | #![warn(unused_assignments)] + | ^^^^^^^^^^^^^^^^^^ + +warning: 1 warning emitted + -- cgit v1.2.3