]> git.proxmox.com Git - rustc.git/blob - tests/ui/hashmap/hashmap-index-mut.rs
bump version to 1.79.0+dfsg1-1~bpo12+pve2
[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 }