1 // Tests the suggestion to reborrow the first move site
2 // when we move then borrow a `&mut` ref.
6 impl IntoIterator for &mut State {
7 type IntoIter = std::vec::IntoIter<()>;
10 fn into_iter(self) -> Self::IntoIter {
15 fn once(f: impl FnOnce()) {}
17 fn fill_memory_blocks_mt(state: &mut State) {
19 //~^ HELP consider creating a fresh reborrow of `state` here
21 //~^ ERROR borrow of moved value: `state`
24 fn fill_segment(state: &mut State) {}