1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
fn main() { for i in 0..10 { println!("{}", i); } // do not have to fix this loop loop { break; } let mut i = 0; // do not have to fix this loop while i < 10 { i += 1; } } struct A; impl Default for A { fn default() -> Self { Self } }