mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-16 10:35:22 +00:00
11 lines
310 B
Plaintext
11 lines
310 B
Plaintext
error: this operation will panic at runtime
|
|
--> $DIR/ice-5497.rs:9:22
|
|
|
|
|
LL | const OOB: i32 = [1][1] + T::OOB;
|
|
| ^^^^^^ index out of bounds: the length is 1 but the index is 1
|
|
|
|
|
= note: `#[deny(unconditional_panic)]` on by default
|
|
|
|
error: aborting due to previous error
|
|
|