about summary refs log tree commit diff
path: root/src/rustllvm/ExecutionEngineWrapper.cpp
diff options
context:
space:
mode:
authorbluss <bluss>2014-12-25 02:17:48 +0100
committerbluss <bluss>2014-12-25 02:17:48 +0100
commit11146856969515807f85796028d8a214aaac0528 (patch)
tree6cd2e5e5f6ead9467e7a20d520fab460e8360558 /src/rustllvm/ExecutionEngineWrapper.cpp
parent7e11b22713aebd28ceaaa2ecef937c9b9d247c2f (diff)
downloadrust-11146856969515807f85796028d8a214aaac0528.tar.gz
rust-11146856969515807f85796028d8a214aaac0528.zip
hashmap: Fix the example using derived Hash + Eq
The example derived Hash + Eq on a type that was used as *values* for
a hashmap.. for the example to make sense, we have to use a custom *key*
type.

Write a slightly more involved example, still using Vikings, but this
time as key.

I preferred using String over &str here, since that's the typical usage
and we might want to lead users down that path.
Diffstat (limited to 'src/rustllvm/ExecutionEngineWrapper.cpp')
0 files changed, 0 insertions, 0 deletions