]> git.lizzy.rs Git - rust.git/blob - src/test/ui/for-loop-while/liveness-move-in-loop.rs
Auto merge of #99028 - tmiasko:inline, r=estebank
[rust.git] / src / test / ui / for-loop-while / liveness-move-in-loop.rs
1 // run-pass
2 #![allow(dead_code)]
3
4 // pretty-expanded FIXME #23616
5
6 fn take(x: isize) -> isize {x}
7
8 fn the_loop() {
9     let mut list = Vec::new();
10     loop {
11         let x = 5;
12         if x > 3 {
13             list.push(take(x));
14         } else {
15             break;
16         }
17     }
18 }
19
20 pub fn main() {}