about summary refs log tree commit diff
path: root/src/libstd/map.rs
diff options
context:
space:
mode:
authorMarijn Haverbeke <marijnh@gmail.com>2012-03-16 16:25:36 +0100
committerMarijn Haverbeke <marijnh@gmail.com>2012-03-16 17:05:29 +0100
commit35fc4a4291dfc8d33b3b500ff0f1b2748ddd5ff0 (patch)
tree96bcbca364f4cc4d68610271719017b0841c5f97 /src/libstd/map.rs
parent25c2be0ff477c5bd6c71f4dc598d7a94c08bb724 (diff)
downloadrust-35fc4a4291dfc8d33b3b500ff0f1b2748ddd5ff0.tar.gz
rust-35fc4a4291dfc8d33b3b500ff0f1b2748ddd5ff0.zip
Check kind bounds when calling methods
Closes #1915
Diffstat (limited to 'src/libstd/map.rs')
-rw-r--r--src/libstd/map.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/map.rs b/src/libstd/map.rs
index f5302082b8d..760dab76643 100644
--- a/src/libstd/map.rs
+++ b/src/libstd/map.rs
@@ -330,7 +330,7 @@ fn uint_hash<V: copy>() -> hashmap<uint, V> {
 #[doc = "
 Convenience function for adding keys to a hashmap with nil type keys
 "]
-fn set_add<K>(set: set<K>, key: K) -> bool { ret set.insert(key, ()); }
+fn set_add<K: copy>(set: set<K>, key: K) -> bool { ret set.insert(key, ()); }
 
 #[cfg(test)]
 mod tests {