1 2 3 4 5 6 7 8 9 10
fn foo() {} fn bar() -> i32 { return 10; } fn main() { let mut i = 1; while i < bar() { foo(); i += 1; } }