1 error[E0501]: cannot borrow `*f` as mutable because previous closure requires unique access
2 --> $DIR/borrowck-insert-during-each.rs:16:5
5 | ^ --- first borrow later used by call
10 | | --- closure construction occurs here
11 LL | | f.n.insert(*a);
12 | | - first borrow occurs due to use of `f` in closure
14 | |__________^ second borrow occurs here
16 error[E0500]: closure requires unique access to `f` but it is already borrowed
17 --> $DIR/borrowck-insert-during-each.rs:18:9
20 | - --- first borrow later used by call
25 | ^^^ closure construction occurs here
27 | - second borrow occurs due to use of `f` in closure
29 error: aborting due to 2 previous errors
31 Some errors have detailed explanations: E0500, E0501.
32 For more information about an error, try `rustc --explain E0500`.