summary refs log tree commit diff
path: root/src/test/ui/issues/issue-41726.rs
blob: ed05629389005530f5ccf4177b4234e6bda38bea (plain)
1
2
3
4
5
6
7
use std::collections::HashMap;
fn main() {
    let things: HashMap<String, Vec<String>> = HashMap::new();
    for src in things.keys() {
        things[src.as_str()].sort(); //~ ERROR cannot borrow data in a `&` reference as mutable
    }
}