Types 不匹配的类型:`expected fn@(&;@type)->;uint`但找到了'extern fn(@map_a)->;uint`(应为参数模式+;+;但已找到)

Types 不匹配的类型:`expected fn@(&;@type)->;uint`但找到了'extern fn(@map_a)->;uint`(应为参数模式+;+;但已找到),types,rust,Types,Rust,线路触发: fn rmap_hash (m: @map_a) -> uint { 0 } fn rmap_eqer (m1: @map_a, m2: @map_b) -> bool { true } 设b:map\u b=hashmap::(rmap\u hash,rmap\u eqer); 如果您像这样编写Rust函数,它能工作吗 let b: map_b = hashmap::<@map_a, uint>(rmap_hash, rmap_eqer); 对就像你在I

线路触发:

fn rmap_hash (m: @map_a) -> uint { 0 }
fn rmap_eqer (m1: @map_a, m2: @map_b) -> bool { true }
设b:map\u b=hashmap::(rmap\u hash,rmap\u eqer);

如果您像这样编写Rust函数,它能工作吗

let b: map_b = hashmap::<@map_a, uint>(rmap_hash, rmap_eqer);

对就像你在IRC上说的。虽然我仍然不确定它们是什么。
let b: map_b = hashmap::<@map_a, uint>(rmap_hash, rmap_eqer);
fn rmap_hash (&&m: @map_a) -> uint { 0 }

fn rmap_eqer (&&m1: @map_a, &&m2: @map_b) -> bool { true }