Never return type¶ You can use ! (a.k.a. never) as return type of function to specify that function never returns. public halt_program() -> ! { // Some halt code } Was this page helpful? Thanks for your feedback! Thanks for your feedback! Help us improve this page by using our feedback form. Comments