about summary refs log tree commit diff
path: root/src/tools/clippy/tests/ui/shadow.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/clippy/tests/ui/shadow.rs')
-rw-r--r--src/tools/clippy/tests/ui/shadow.rs15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/tools/clippy/tests/ui/shadow.rs b/src/tools/clippy/tests/ui/shadow.rs
index 7d503a1cf6c..05009b2ddd4 100644
--- a/src/tools/clippy/tests/ui/shadow.rs
+++ b/src/tools/clippy/tests/ui/shadow.rs
@@ -167,4 +167,19 @@ fn issue13795(value: Issue13795) {
     //~^ shadow_same
 }
 
+fn issue14377() {
+    let a;
+    let b;
+    (a, b) = (0, 1);
+
+    struct S {
+        c: i32,
+        d: i32,
+    }
+
+    let c;
+    let d;
+    S { c, d } = S { c: 1, d: 2 };
+}
+
 fn main() {}