]> git.lizzy.rs Git - rust.git/blob - tests/ui/btreemap/btreemap-index-mut.rs
Rollup merge of #107022 - scottmcm:ordering-option-eq, r=m-ou-se
[rust.git] / tests / ui / btreemap / btreemap-index-mut.rs
1 use std::collections::BTreeMap;
2
3 fn main() {
4     let mut map = BTreeMap::<u32, u32>::new();
5     map[&0] = 1; //~ ERROR cannot assign
6 }