]> git.proxmox.com Git - rustc.git/blame - src/test/ui/borrowck/issue-82032.rs
Merge tag 'debian/1.52.1+dfsg1-1_exp2' into proxmox/buster
[rustc.git] / src / test / ui / borrowck / issue-82032.rs
CommitLineData
6a06907d
XL
1use std::{fs, io::*};
2use std::collections::HashMap;
3
4type Handle = BufWriter<fs::File>;
5struct Thing(HashMap<String, Handle>);
6
7impl Thing {
8 pub fn die_horribly(&mut self) {
9 for v in self.0.values() {
10 v.flush();
11 //~^ ERROR cannot borrow
12 }
13 }
14}
15
16fn main() {}