rust-playground icon indicating copy to clipboard operation
rust-playground copied to clipboard

Show exit status

Open RalfJung opened this issue 4 years ago • 0 comments

Programs like this are confusing to run on the playground because they print a panic message, but actually exit successfully:

fn unwind() {
    panic!();
}

fn main() {
    std::panic::catch_unwind(|| unwind()).unwrap_err();
}

It would be good to have some way to see the exit status of the program on playground, to tell whether the program (thinks it) ran successfully or failed.

RalfJung avatar Mar 11 '21 08:03 RalfJung