1 2 3 4 5 6 7
use std::collections::HashMap; fn intersect_map<K, V>(this: &mut HashMap<K, V>, other: HashMap<K, V>) -> bool { this.drain() //~^ ERROR no method named } fn main() {}