Closed
Description
rust-analyzer version: 2021-12-13
rustc version: 1.56.1
In this code example RA seems unable to figure out the type of the HashMap.
This gets resolved either by removing the second map, or by making the tuple something simpler, like ((0, 0), 0)
.
use std::collections::HashMap;
let _conversions = (0..1)
.map(|_| (0, ((0, 0, 0), 0)))
.map(|c| c)
.collect::<HashMap<_, _>>();