]> git.lizzy.rs Git - rust.git/blob - src/test/ui/borrowck/issue-101119.rs
Rollup merge of #102488 - compiler-errors:gat-compatibility, r=oli-obk
[rust.git] / src / test / 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() {}