diff options
Diffstat (limited to 'src/test/ui/borrowck/issue-82032.rs')
-rw-r--r-- | src/test/ui/borrowck/issue-82032.rs | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/test/ui/borrowck/issue-82032.rs b/src/test/ui/borrowck/issue-82032.rs deleted file mode 100644 index 4a01b60c1..000000000 --- a/src/test/ui/borrowck/issue-82032.rs +++ /dev/null @@ -1,16 +0,0 @@ -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() {} |