]> git.proxmox.com Git - rustc.git/blob - tests/ui/hashmap/hashmap-index-mut.rs
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / ui / hashmap / hashmap-index-mut.rs
1 use std::collections::HashMap;
2
3 fn main() {
4 let mut map = HashMap::<u32, u32>::new();
5 map[&0] = 1; //~ ERROR cannot assign
6 }