Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
15 lines (11 sloc) 231 Bytes
// run-pass
#![allow(unused_parens)]
// pretty-expanded FIXME #23616
/* Make sure a loop{} can be the tailexpr in the body
of a diverging function */
fn forever() -> ! {
loop{}
}
pub fn main() {
if (1 == 2) { forever(); }
}
You can’t perform that action at this time.