summaryrefslogtreecommitdiffstats
path: root/src/test/ui/loops/loop-properly-diverging-2.rs
blob: 97b3972c135f1a566cba5aeefbd8be49846e0039 (plain)
1
2
3
4
5
6
fn forever2() -> i32 {
  let x: i32 = loop { break }; //~ ERROR mismatched types
  x
}

fn main() {}