T rust lang playground dependency
The Rust Programming Language Forum
T rust lang playground dependency
src/main.rs #![allow(unused)] fn main() { use std::collections::HashMap; let map1 = HashMap::from([(1, 2), (3, 4)]); let map2: HashMap<_, _> = [(1, 2), (3, 4)].into(); assert_eq!(map1, map2); } ```([Playground](https://play.rust-lang.org/?version=stable&mode=release&edition=2024&gist=1ce7d8faeead79cbc3d5361b4c452f65)) Errors: Compiling playground v0.0.1 (/playground) Finished release profile [optimized] target(s) in 0.60s Running target/release/playground
0 comments
No comments yet.