type Result = std::result::Result>; fn main() -> Result<()> { fn inner_main() -> Result { { Ok(0) } } std::process::exit(inner_main()?); }