Closed
Description
use std::collections::HashMap;
fn intersect_map<K, V>(this: &mut HashMap<K, V>, other: HashMap<K, V>) -> bool {
this.drain()
}
reports
note: the method `drain` exists but the following trait bounds were not satisfied: `K : std::cmp::Eq`, `K : std::hash::Hash`, `K : std::cmp::Eq`, `K : std::hash::Hash`
Note how it reports about K
missing necessary bounds twice.
Metadata
Metadata
Assignees
Type
Projects
Milestone
Relationships
Development
No branches or pull requests
Activity
Rollup merge of rust-lang#56760 - estebank:dedup-bounds, r=oli-obk
Rollup merge of rust-lang#56760 - estebank:dedup-bounds, r=oli-obk
Rollup merge of rust-lang#56760 - estebank:dedup-bounds, r=oli-obk
Rollup merge of rust-lang#56760 - estebank:dedup-bounds, r=oli-obk