From 1f8c29c6ade779f322adcc6900d2e615a583e59a Mon Sep 17 00:00:00 2001 From: Andre Bogus Date: Wed, 12 Aug 2015 21:39:42 +0200 Subject: [PATCH] fixed error messages in compile-fail test --- tests/compile-fail/strings.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/compile-fail/strings.rs b/tests/compile-fail/strings.rs index 02ebca2fe07..680ebb73dea 100755 --- a/tests/compile-fail/strings.rs +++ b/tests/compile-fail/strings.rs @@ -7,11 +7,11 @@ fn add_only() { // ignores assignment distinction let mut x = "".to_owned(); for _ in (1..3) { - x = x + "."; //~ERROR you add something to a string. + x = x + "."; //~ERROR you added something to a string. } let y = "".to_owned(); - let z = y + "..."; //~ERROR you add something to a string. + let z = y + "..."; //~ERROR you added something to a string. assert_eq!(&x, &z); } @@ -21,7 +21,7 @@ fn add_assign_only() { let mut x = "".to_owned(); for _ in (1..3) { - x = x + "."; //~ERROR you assign the result of adding something to this string. + x = x + "."; //~ERROR you assigned the result of adding something to this string. } let y = "".to_owned(); @@ -35,11 +35,11 @@ fn both() { let mut x = "".to_owned(); for _ in (1..3) { - x = x + "."; //~ERROR you assign the result of adding something to this string. + x = x + "."; //~ERROR you assigned the result of adding something to this string. } let y = "".to_owned(); - let z = y + "..."; //~ERROR you add something to a string. + let z = y + "..."; //~ERROR you added something to a string. assert_eq!(&x, &z); }