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); +}