2017-05-08 09:05:03 -05:00
|
|
|
use std::collections::HashMap;
|
|
|
|
fn main() {
|
|
|
|
let things: HashMap<String, Vec<String>> = HashMap::new();
|
|
|
|
for src in things.keys() {
|
2019-04-22 02:40:08 -05:00
|
|
|
things[src.as_str()].sort(); //~ ERROR cannot borrow data in a `&` reference as mutable
|
2017-05-08 09:05:03 -05:00
|
|
|
}
|
|
|
|
}
|