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
I tried compiling and executing on Debian 9.4, which printed panic message correctly.
Without println!, Mac OS prints panic message.
// array_out_of_bound.rs
fn main() {
let a = [1];
a[1];
}
$ rustc array_out_of_bound.rs
$ ./array_out_of_bound
thread 'main' panicked at 'index out of bounds: the len is 1 but the index is 1', array_out_of_bound.rs:3:5
note: Run with `RUST_BACKTRACE=1` for a backtrace.
The text was updated successfully, but these errors were encountered:
This program segfaults on Mac OS 10.10.5.
I tried compiling and executing on Debian 9.4, which printed panic message correctly.
Without
println!
, Mac OS prints panic message.The text was updated successfully, but these errors were encountered: