Skip to content

Commit d5c1d37

Browse files
committed
*types_test
1 parent b79f9af commit d5c1d37

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

rust/src/main.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,13 @@ fn types_test() {
6060
assert_eq!(my_str, "1");
6161

6262
let mut my_string = String::from(my_str);
63+
assert_eq!(my_string, "1");
6364

6465
my_string = my_str.into();
6566
my_string += "2";
6667
assert_eq!(my_string, "12");
6768

68-
let s2 = my_string;
69+
let s2 = my_string.clone();
6970
assert_eq!(s2, "12");
7071
assert_eq!(my_string, "12");
7172

0 commit comments

Comments
 (0)