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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
487 B
Plaintext
Raw Normal View History

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