Function

trap()

Terminates the program abnormally.

Source
fun trap() -> Never

Details

This function calls abort in a hosted environment or halt in free-standing mode.