mirror of
https://github.com/rust-lang/rustlings.git
synced 2026-01-10 12:49:18 +00:00
Fixed hint for move semantics ex. 1 hint
This commit is contained in:
parent
df25684cb7
commit
bfc0c8a1fd
@ -171,7 +171,7 @@ path = "exercises/move_semantics/move_semantics2.rs"
|
|||||||
mode = "compile"
|
mode = "compile"
|
||||||
hint = """
|
hint = """
|
||||||
So `vec0` is being *moved* into the function `fill_vec` when we call it on
|
So `vec0` is being *moved* into the function `fill_vec` when we call it on
|
||||||
line 10, which means it gets dropped at the end of `fill_vec`, which means we
|
line 7, which means it gets dropped at the end of `fill_vec`, which means we
|
||||||
can't use `vec0` again on line 13 (or anywhere else in `main` after the
|
can't use `vec0` again on line 13 (or anywhere else in `main` after the
|
||||||
`fill_vec` call for that matter). We could fix this in a few ways, try them
|
`fill_vec` call for that matter). We could fix this in a few ways, try them
|
||||||
all!
|
all!
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user