mirror of
https://github.com/rust-lang/book.git
synced 2026-09-15 08:59:17 -04:00
Merge pull request #647 from dnaeon/ch04-fixes
ch04: add missing whitespace in build output
This commit is contained in:
@@ -339,8 +339,8 @@ error[E0382]: use of moved value: `s1`
|
||||
|
|
||||
3 | let s2 = s1;
|
||||
| -- value moved here
|
||||
4 | println!("{}, world!",s1);
|
||||
| ^^ value used here after move
|
||||
4 | println!("{}, world!", s1);
|
||||
| ^^ value used here after move
|
||||
|
|
||||
= note: move occurs because `s1` has type `std::string::String`,
|
||||
which does not implement the `Copy` trait
|
||||
|
||||
Reference in New Issue
Block a user