fork/rust
git clone https://git.julia.blue/fork/rust
b8cedc00407
1.42.0
1warning: index out of bounds: the len is 3 but the index is 4 2 --> $DIR/array-literal-index-oob.rs:7:8 3 | 4LL | &{ [1, 2, 3][4] }; 5 | ^^^^^^^^^^^^ 6 | 7note: lint level defined here 8 --> $DIR/array-literal-index-oob.rs:4:9 9 | 10LL | #![warn(const_err)] 11 | ^^^^^^^^^ 12 13warning: reaching this expression at runtime will panic or abort 14 --> $DIR/array-literal-index-oob.rs:7:8 15 | 16LL | &{ [1, 2, 3][4] }; 17 | ---^^^^^^^^^^^^-- 18 | | 19 | indexing out of bounds: the len is 3 but the index is 4 20 21warning: erroneous constant used 22 --> $DIR/array-literal-index-oob.rs:7:5 23 | 24LL | &{ [1, 2, 3][4] }; 25 | ^^^^^^^^^^^^^^^^^ referenced constant has errors 26