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