pub unsafe fn exit() -> Error<ExitError>
unstable
ext_tsk: Terminate the current task.
ext_tsk
This function will not return if it succeeds.
If the task’s stack is reused later, stored local variables are destroyed without running their destructors, violating the pinning requirements.