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);
}
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 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);
}