about summary refs log tree commit diff
path: root/src/test/run-pass
diff options
context:
space:
mode:
authorCameron Hart <cameron.hart@gmail.com>2017-04-25 21:16:41 +1000
committerCameron Hart <cameron.hart@gmail.com>2017-04-25 21:18:30 +1000
commita510e1df76e8f141530ad9e6a0f5dfc5ad1933cf (patch)
tree9d5f7988b0d9f34578a0967c67db5938269504ce /src/test/run-pass
parent72acea0e80574556c8e6655c12229386669b955d (diff)
downloadrust-a510e1df76e8f141530ad9e6a0f5dfc5ad1933cf.tar.gz
rust-a510e1df76e8f141530ad9e6a0f5dfc5ad1933cf.zip
Added test for #41479 from @eddyb.
Diffstat (limited to 'src/test/run-pass')
-rw-r--r--src/test/run-pass/issue-41479.rs18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/test/run-pass/issue-41479.rs b/src/test/run-pass/issue-41479.rs
new file mode 100644
index 00000000000..cc97b3323cf
--- /dev/null
+++ b/src/test/run-pass/issue-41479.rs
@@ -0,0 +1,18 @@
+// Copyright 2017 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
+fn split<A, B>(pair: (A, B)) {
+    let _a = pair.0;
+    let _b = pair.1;
+}
+
+fn main() {
+    split(((), ((), ())));
+}