2018-08-30 14:18:55 +02:00
|
|
|
// run-pass
|
2018-09-25 23:51:35 +02:00
|
|
|
#![allow(unused_parens)]
|
2015-03-22 13:13:15 -07:00
|
|
|
// pretty-expanded FIXME #23616
|
|
|
|
|
2012-03-11 20:17:27 -07:00
|
|
|
/* Make sure a loop{} can be the tailexpr in the body
|
|
|
|
of a diverging function */
|
|
|
|
|
|
|
|
fn forever() -> ! {
|
|
|
|
loop{}
|
|
|
|
}
|
|
|
|
|
2013-02-01 19:43:17 -08:00
|
|
|
pub fn main() {
|
2015-01-25 22:05:03 +01:00
|
|
|
if (1 == 2) { forever(); }
|
2013-02-14 11:47:00 -08:00
|
|
|
}
|