10 lines
156 B
Rust
10 lines
156 B
Rust
/* Make sure a loop{} can be the tailexpr in the body
|
|
of a diverging function */
|
|
|
|
fn forever() -> ! {
|
|
loop{}
|
|
}
|
|
|
|
fn main() {
|
|
if (1 == 2) { forever(); }
|
|
} |