A panic stops the current thread on a condition the program declares impossible: an index out of bounds, an unwrap of None or of Err, an explicit panic!. The values of the thread are dropped, a message gives the place and the cause, and if the thread is the main one the process exits with status 101.
Computer Science · المسرد