1 // compile-flags:--test
3 /// A check of using various process termination strategies
8 /// assert!(true); // this returns `()`, all is well
11 /// You can also simply return `Ok(())`, but you'll need to disambiguate the
12 /// type using turbofish, because we cannot infer the type:
15 /// Ok::<(), &'static str>(())
18 /// You can err with anything that implements `Debug`:
20 /// ```rust,should_panic
21 /// Err("This is returned from `main`, leading to panic")?;
22 /// Ok::<(), &'static str>(())
24 pub fn check_process_termination() {}