|
|
|
@ -216,10 +216,14 @@ path = "exercises/move_semantics/move_semantics5.rs"
|
|
|
|
|
mode = "compile"
|
|
|
|
|
hint = """
|
|
|
|
|
Carefully reason about the range in which each mutable reference is in
|
|
|
|
|
vogue. Does updating the value of referrent (x) immediately after the
|
|
|
|
|
mutable reference is taken helps? Read more about 'Mutable Referenes'
|
|
|
|
|
vogue. Does it help to update the value of referent (x) immediately after
|
|
|
|
|
the mutable reference is taken? Read more about 'Mutable References'
|
|
|
|
|
in the book's section References and Borrowing':
|
|
|
|
|
https://doc.rust-lang.org/book/ch04-02-references-and-borrowing.html#mutable-references."""
|
|
|
|
|
https://doc.rust-lang.org/book/ch04-02-references-and-borrowing.html#mutable-references.
|
|
|
|
|
|
|
|
|
|
Additional hint:
|
|
|
|
|
If you can't add, change, or remove any statements in `main()`, can you
|
|
|
|
|
reorder them in a way that lets the program compile?"""
|
|
|
|
|
|
|
|
|
|
# PRIMITIVE TYPES
|
|
|
|
|
|
|
|
|
|