rust/tests/ui/loops/loop-properly-diverging-2.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

7 lines
101 B
Rust
Raw Normal View History

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