diff options
| author | Marijn Haverbeke <marijnh@gmail.com> | 2012-03-16 16:25:36 +0100 |
|---|---|---|
| committer | Marijn Haverbeke <marijnh@gmail.com> | 2012-03-16 17:05:29 +0100 |
| commit | 35fc4a4291dfc8d33b3b500ff0f1b2748ddd5ff0 (patch) | |
| tree | 96bcbca364f4cc4d68610271719017b0841c5f97 /src/libstd/map.rs | |
| parent | 25c2be0ff477c5bd6c71f4dc598d7a94c08bb724 (diff) | |
| download | rust-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.rs | 2 |
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 { |
