You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The compilation didn’t produce any errors, but the program resulted in a runtime error and didn’t exit successfully.
close to the end, but actually it's a compile time error as is apparent from the error message displayed above, and also verified by compiling by hand.
The text was updated successfully, but these errors were encountered:
I suspect the unconditional_panic compiler check was added in a later version after that paragraph was written, and command output in the book is automatically updated?
Yes, looking at the web archive, for the records, this was the output before:
$ cargo run
Compiling arrays v0.1.0 (file:///projects/arrays)
Finished dev [unoptimized + debuginfo] target(s) in 0.31 secs
Running `target/debug/arrays`
thread '<main>' panicked at 'index out of bounds: the len is 5 but the index is
10', src/main.rs:6
note: Run with `RUST_BACKTRACE=1` for a backtrace.
The text says
The compilation didn’t produce any errors, but the program resulted in a runtime error and didn’t exit successfully.
close to the end, but actually it's a compile time error as is apparent from the error message displayed above, and also verified by compiling by hand.
The text was updated successfully, but these errors were encountered: