summary refs log tree commit diff
path: root/src/test/ui/issues/issue-54348.stderr
blob: d4ee94aa411b79f769df29a18a63949bd7a35f8d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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]; //~ ERROR index out of bounds
   |     ^^^^^^^^^^^^^^^^^
   |
   = 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 index out of bounds
   |     ^^^^^^^^^^^^^^^^^^

error: aborting due to 2 previous errors