]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-54348.stderr
79320ef4f31c788bdf58fc00895b38811fea695c
[rust.git] / src / test / ui / issues / issue-54348.stderr
1 error: index out of bounds: the len is 1 but the index is 1
2   --> $DIR/issue-54348.rs:3:5
3    |
4 LL |     [1][1.5 as usize];
5    |     ^^^^^^^^^^^^^^^^^
6    |
7    = note: `#[deny(const_err)]` on by default
8
9 error: this expression will panic at runtime
10   --> $DIR/issue-54348.rs:3:5
11    |
12 LL |     [1][1.5 as usize];
13    |     ^^^^^^^^^^^^^^^^^ index out of bounds: the len is 1 but the index is 1
14
15 error: index out of bounds: the len is 1 but the index is 1
16   --> $DIR/issue-54348.rs:5:5
17    |
18 LL |     [1][1u64 as usize];
19    |     ^^^^^^^^^^^^^^^^^^
20
21 error: this expression will panic at runtime
22   --> $DIR/issue-54348.rs:5:5
23    |
24 LL |     [1][1u64 as usize];
25    |     ^^^^^^^^^^^^^^^^^^ index out of bounds: the len is 1 but the index is 1
26
27 error: aborting due to 4 previous errors
28