Beginner Rust
Q20 / 100

What does panic! do?

Correct! Well done.

Incorrect.

The correct answer is B) Terminates the current thread with an error message (optionally unwinds the stack)

B

Correct Answer

Terminates the current thread with an error message (optionally unwinds the stack)

Explanation

panic!("message") crashes the program (or thread). It's for unrecoverable errors. Use Result for recoverable errors.

Progress
20/100