about summary refs log tree commit diff
path: root/src/test/compile-fail/tuple-index-out-of-bounds.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/compile-fail/tuple-index-out-of-bounds.rs')
-rw-r--r--src/test/compile-fail/tuple-index-out-of-bounds.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/compile-fail/tuple-index-out-of-bounds.rs b/src/test/compile-fail/tuple-index-out-of-bounds.rs
index 54b8d551f20..e2a951cab72 100644
--- a/src/test/compile-fail/tuple-index-out-of-bounds.rs
+++ b/src/test/compile-fail/tuple-index-out-of-bounds.rs
@@ -11,12 +11,12 @@
 struct Point(i32, i32);
 
 fn main() {
-    let origin = Point(0i32, 0i32);
+    let origin = Point(0, 0);
     origin.0;
     origin.1;
     origin.2;
     //~^ ERROR attempted out-of-bounds tuple index `2` on type `Point`
-    let tuple = (0i32, 0i32);
+    let tuple = (0, 0);
     tuple.0;
     tuple.1;
     tuple.2;