rustlings-solutions/exercises/smart_pointers
Daan Wynen bbdc5c6039 refactor(cow1): replace main with tests
Following the discussion in #1195 this is the best I could come up with.
The issue for me (and apparently a few other learners) was that the code
needed to complete the exercise was not _missing_, but was rather there
but wrong.

In the end, what made the difference between this exercise and others
(for me) was that in this exercise I was supposed to learn what to
*expect* of an output. So I think it makes sense here to let the learner
modify the tests and not the code itself.

Fixes #1195

Signed-off-by: Daan Wynen <black.puppydog@gmx.de>

# Conflicts:
#	info.toml
2023-02-14 20:37:33 +01:00
..
arc1.rs move arc to smart_pointers 2023-01-01 01:44:47 +01:00
box1.rs moved box to smart_pointers 2023-01-01 01:51:27 +01:00
cow1.rs refactor(cow1): replace main with tests 2023-02-14 20:37:33 +01:00
rc1.rs chore: fix prompt error 2023-01-23 12:16:51 +08:00
README.md fixed formatting 2023-01-01 02:17:53 +01:00

Smart Pointers

In Rust, smart pointers are variables that contain an address in memory and reference some other data, but they also have additional metadata and capabilities. Smart pointers in Rust often own the data they point to, while references only borrow data.

Further Information