blob: 4a01b60c1f62b55d25a8f5dbb63d95528ec97b24 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
use std::{fs, io::*};
use std::collections::HashMap;
type Handle = BufWriter<fs::File>;
struct Thing(HashMap<String, Handle>);
impl Thing {
pub fn die_horribly(&mut self) {
for v in self.0.values() {
v.flush();
//~^ ERROR cannot borrow
}
}
}
fn main() {}
|