about summary refs log tree commit diff
path: root/src/test/compile-fail/borrowck-match-binding-is-assignment.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/compile-fail/borrowck-match-binding-is-assignment.rs')
-rw-r--r--src/test/compile-fail/borrowck-match-binding-is-assignment.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/compile-fail/borrowck-match-binding-is-assignment.rs b/src/test/compile-fail/borrowck-match-binding-is-assignment.rs
index 819ff73a580..575d67c0b83 100644
--- a/src/test/compile-fail/borrowck-match-binding-is-assignment.rs
+++ b/src/test/compile-fail/borrowck-match-binding-is-assignment.rs
@@ -19,7 +19,7 @@ struct S {
 }
 
 pub fn main() {
-    match 1i {
+    match 1is {
         x => {
             x += 1; //~ ERROR re-assignment of immutable variable `x`
         }
@@ -37,13 +37,13 @@ pub fn main() {
         }
     }
 
-    match (1i,) {
+    match (1is,) {
         (x,) => {
             x += 1; //~ ERROR re-assignment of immutable variable `x`
         }
     }
 
-    match [1i,2,3] {
+    match [1is,2,3] {
         [x,_,_] => {
             x += 1; //~ ERROR re-assignment of immutable variable `x`
         }