mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-23 22:14:15 +00:00
21 lines
301 B
Rust
21 lines
301 B
Rust
//@ run-pass
|
|
#![allow(dead_code)]
|
|
|
|
//@ pretty-expanded FIXME #23616
|
|
|
|
fn take(x: isize) -> isize {x}
|
|
|
|
fn the_loop() {
|
|
let mut list = Vec::new();
|
|
loop {
|
|
let x = 5;
|
|
if x > 3 {
|
|
list.push(take(x));
|
|
} else {
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
|
|
pub fn main() {}
|