Perpetual n00b struggling with ownership (again)

You're not allowed to use references in structs until you think Rust is easy. They're the evil-hardmode of Rust that will ruin your day.

:wink:

Use Box or Arc to store things in structs "by reference". Temporary borrows don't do what you think they do.

27 Likes