about summary refs log tree commit diff
path: root/src/test/ui/tuple/tuple-index-out-of-bounds.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/tuple/tuple-index-out-of-bounds.rs')
-rw-r--r--src/test/ui/tuple/tuple-index-out-of-bounds.rs14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/test/ui/tuple/tuple-index-out-of-bounds.rs b/src/test/ui/tuple/tuple-index-out-of-bounds.rs
deleted file mode 100644
index c772c0daa18..00000000000
--- a/src/test/ui/tuple/tuple-index-out-of-bounds.rs
+++ /dev/null
@@ -1,14 +0,0 @@
-struct Point(i32, i32);
-
-fn main() {
-    let origin = Point(0, 0);
-    origin.0;
-    origin.1;
-    origin.2;
-    //~^ ERROR no field `2` on type `Point`
-    let tuple = (0, 0);
-    tuple.0;
-    tuple.1;
-    tuple.2;
-    //~^ ERROR no field `2` on type `({integer}, {integer})`
-}