]>
Commit | Line | Data |
---|---|---|
48663c56 XL |
1 | error: index out of bounds: the len is 3 but the index is 4 |
2 | --> $DIR/array-literal-index-oob.rs:2:7 | |
3 | | | |
4 | LL | &{[1, 2, 3][4]}; | |
5 | | ^^^^^^^^^^^^ | |
6 | | | |
7 | = note: #[deny(const_err)] on by default | |
8 | ||
9 | error: reaching this expression at runtime will panic or abort | |
10 | --> $DIR/array-literal-index-oob.rs:2:7 | |
11 | | | |
12 | LL | &{[1, 2, 3][4]}; | |
13 | | --^^^^^^^^^^^^- | |
14 | | | | |
15 | | index out of bounds: the len is 3 but the index is 4 | |
16 | ||
17 | error: aborting due to 2 previous errors | |
18 |