You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| -- move occurs because `s1` has type `String`, which does not implement the `Copy` trait
8
8
3 | let s2 = s1;
9
9
| -- value moved here
10
10
4 |
11
11
5 | println!("{s1}, world!");
12
-
| ^^^^ value borrowed here after move
12
+
| ^^ value borrowed here after move
13
13
|
14
14
= note: this error originates in the macro `$crate::format_args_nl` which comes from the expansion of the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info)
15
15
help: consider cloning the value if the performance cost is acceptable
0 commit comments