]>
Commit | Line | Data |
---|---|---|
74b04a01 | 1 | warning: this operation will panic at runtime |
dfeec247 | 2 | --> $DIR/array-literal-index-oob.rs:7:8 |
48663c56 | 3 | | |
dfeec247 | 4 | LL | &{ [1, 2, 3][4] }; |
1b1a35ee | 5 | | ^^^^^^^^^^^^ index out of bounds: the length is 3 but the index is 4 |
48663c56 | 6 | | |
74b04a01 XL |
7 | note: the lint level is defined here |
8 | --> $DIR/array-literal-index-oob.rs:4:20 | |
dfeec247 | 9 | | |
74b04a01 XL |
10 | LL | #![warn(const_err, unconditional_panic)] |
11 | | ^^^^^^^^^^^^^^^^^^^ | |
48663c56 | 12 | |
5869c6ff | 13 | warning: 1 warning emitted |
ba9703b0 | 14 |