about summary refs log tree commit diff
path: root/src/test/run-pass
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2017-04-27 21:54:07 +0000
committerbors <bors@rust-lang.org>2017-04-27 21:54:07 +0000
commita8ebd083fcc7120f8fffffa061525bb225a3e17b (patch)
tree4bddb7e1094b65698573e93e1d8c52d2c30ae79f /src/test/run-pass
parent94e884b6307a59f1e6e64aa7ebc1996b651a7629 (diff)
parenta510e1df76e8f141530ad9e6a0f5dfc5ad1933cf (diff)
downloadrust-a8ebd083fcc7120f8fffffa061525bb225a3e17b.tar.gz
rust-a8ebd083fcc7120f8fffffa061525bb225a3e17b.zip
Auto merge of #41529 - bitshifter:issue-41479, r=eddyb
Add missing OperandPair struct field index adjustments. Fixes #41479.

This is a bug fix for a regression in https://github.com/rust-lang/rust/commit/6d841da4a0d7629f826117f99052e3d4a7997a7e.
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(((), ((), ())));
+}