about summary refs log tree commit diff
path: root/src/test/run-pass/rec-extend.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/run-pass/rec-extend.rs')
-rw-r--r--src/test/run-pass/rec-extend.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/run-pass/rec-extend.rs b/src/test/run-pass/rec-extend.rs
index cd0d089d28a..32754146e46 100644
--- a/src/test/run-pass/rec-extend.rs
+++ b/src/test/run-pass/rec-extend.rs
@@ -6,8 +6,8 @@ type point = {x: int, y: int};
 
 fn main() {
     let origin: point = {x: 0, y: 0};
-    let right: point = {x: origin.x + 10 with origin};
-    let up: point = {y: origin.y + 10 with origin};
+    let right: point = {x: origin.x + 10,.. origin};
+    let up: point = {y: origin.y + 10,.. origin};
     assert (origin.x == 0);
     assert (origin.y == 0);
     assert (right.x == 10);