rust/tests/ui/loops/loop-properly-diverging-2.rs
2023-01-11 09:32:08 +00:00

7 lines
101 B
Rust

fn forever2() -> i32 {
let x: i32 = loop { break }; //~ ERROR mismatched types
x
}
fn main() {}