mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-29 10:13:54 +00:00
41e8d152dc
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
11 lines
304 B
Plaintext
11 lines
304 B
Plaintext
error: this operation will panic at runtime
|
|
--> $DIR/const-prop-ice.rs:4:5
|
|
|
|
|
LL | [0; 3][3u64 as usize];
|
|
| ^^^^^^^^^^^^^^^^^^^^^ index out of bounds: the length is 3 but the index is 3
|
|
|
|
|
= note: `#[deny(unconditional_panic)]` on by default
|
|
|
|
error: aborting due to 1 previous error
|
|
|