rust/tests/ui/consts/issue-54348.stderr

17 lines
487 B
Plaintext
Raw Normal View History

2020-02-15 12:15:15 +00:00
error: this operation will panic at runtime
--> $DIR/issue-54348.rs:5:5
2018-11-14 17:54:32 +00:00
|
2019-03-09 12:03:44 +00:00
LL | [1][1.5 as usize];
| ^^^^^^^^^^^^^^^^^ index out of bounds: the length is 1 but the index is 1
2018-11-14 17:54:32 +00:00
|
2020-02-18 21:49:47 +00:00
= note: `#[deny(unconditional_panic)]` on by default
2018-11-14 17:54:32 +00:00
2020-02-15 12:15:15 +00:00
error: this operation will panic at runtime
--> $DIR/issue-54348.rs:6:5
2018-11-14 17:54:32 +00:00
|
2019-03-09 12:03:44 +00:00
LL | [1][1u64 as usize];
| ^^^^^^^^^^^^^^^^^^ index out of bounds: the length is 1 but the index is 1
2018-11-14 17:54:32 +00:00
error: aborting due to 2 previous errors
2018-11-14 17:54:32 +00:00