mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 18:53:39 +00:00
15 lines
233 B
Rust
15 lines
233 B
Rust
//@ 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(); }
|
|
}
|