[rust-dev] Using hashmaps with str values without warnings?

Erick Tryzelaar erick.tryzelaar at gmail.com
Mon Jul 9 09:42:47 PDT 2012


Good morning,

On Sun, Jul 8, 2012 at 5:16 PM, Daniel Patterson <lists.rust at dbp.mm.st> wrote:
> I have a data type that is:
>
> hashmap<str, str>

Hashmaps require the value to be copyable, so try boxing the value, as
in: hashmap<str, @str>.


More information about the Rust-dev mailing list