From 40a21707b4c0e7e5a8cb5a03ddebecdd59ab705c Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Thu, 26 Mar 2020 00:17:41 -0700 Subject: [PATCH] Add test of tuple nested indexing --- src/test/ui/tuple/nested-index.rs | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 src/test/ui/tuple/nested-index.rs diff --git a/src/test/ui/tuple/nested-index.rs b/src/test/ui/tuple/nested-index.rs new file mode 100644 index 00000000000..e498db8cb88 --- /dev/null +++ b/src/test/ui/tuple/nested-index.rs @@ -0,0 +1,6 @@ +// run-pass + +fn main () { + let n = (1, (2, 3)).1.1; + assert_eq!(n, 3); +}