We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b79f9af commit d5c1d37Copy full SHA for d5c1d37
1 file changed
rust/src/main.rs
@@ -60,12 +60,13 @@ fn types_test() {
60
assert_eq!(my_str, "1");
61
62
let mut my_string = String::from(my_str);
63
+ assert_eq!(my_string, "1");
64
65
my_string = my_str.into();
66
my_string += "2";
67
assert_eq!(my_string, "12");
68
- let s2 = my_string;
69
+ let s2 = my_string.clone();
70
assert_eq!(s2, "12");
71
72
0 commit comments