use std::{fs, io::*}; use std::collections::HashMap; type Handle = BufWriter; struct Thing(HashMap); impl Thing { pub fn die_horribly(&mut self) { for v in self.0.values() { v.flush(); //~^ ERROR cannot borrow } } } fn main() {}