blob: fa77bd6fd77973777265f9315d26ac86907eb4fc [file] [log] [blame]
error: index out of bounds: the len is 1 but the index is 1
--> $DIR/issue-54348.rs:3:5
|
LL | [1][1.5 as usize];
| ^^^^^^^^^^^^^^^^^
|
= note: `#[deny(const_err)]` on by default
error: index out of bounds: the len is 1 but the index is 1
--> $DIR/issue-54348.rs:4:5
|
LL | [1][1u64 as usize];
| ^^^^^^^^^^^^^^^^^^
error: aborting due to 2 previous errors