mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
16 lines
487 B
Text
16 lines
487 B
Text
error: this operation will panic at runtime
|
|
--> $DIR/issue-54348.rs:5:5
|
|
|
|
|
LL | [1][1.5 as usize];
|
|
| ^^^^^^^^^^^^^^^^^ index out of bounds: the length is 1 but the index is 1
|
|
|
|
|
= note: `#[deny(unconditional_panic)]` on by default
|
|
|
|
error: this operation will panic at runtime
|
|
--> $DIR/issue-54348.rs:6:5
|
|
|
|
|
LL | [1][1u64 as usize];
|
|
| ^^^^^^^^^^^^^^^^^^ index out of bounds: the length is 1 but the index is 1
|
|
|
|
error: aborting due to 2 previous errors
|
|
|