Lancern's Treasure Chest
14:00 · Dec 31, 2021 · Fri
Lancern's Treasure Chest
好怪啊、套了一层 Option 类型推导就不工作了
https://github.com/rust-lang/rust/issues/12679
GitHub
Type inference fails to determine closure argument type · Issue #12679 · rust-lang/rust
The following fails to compile: pub fn main() { let mut xs = HashMap::<(u32, u32), u32>::new(); let new_el = |&_| 30; // error: the type of this value must be known in this co...
Home
Powered by
BroadcastChannel
&
Sepia