]> git.lizzy.rs Git - rust.git/blob - tests/ui/borrowck/issue-101119.rs
Rollup merge of #106726 - cmorin6:fix-comment-typos, r=Nilstrieb
[rust.git] / tests / ui / borrowck / issue-101119.rs
1 struct State;
2
3 fn once(_: impl FnOnce()) {}
4
5 fn fill_memory_blocks_mt(state: &mut State) {
6     loop {
7         once(move || {
8             //~^ ERROR use of moved value: `state`
9             fill_segment(state);
10         });
11     }
12 }
13
14 fn fill_segment(_: &mut State) {}
15
16 fn main() {}