fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: negative integers cannot be used to index on a `Vec<{integer}>` 2 --> $DIR/negative-literal-index.rs:15:7 3 | 4LL | x[-1]; 5 | ^^ cannot use a negative integer for indexing on `Vec<{integer}>` 6 | 7help: to access an element starting from the end of the `Vec<{integer}>`, compute the index 8 | 9LL | x[x.len() -1]; 10 | +++++++ 11 12error: negative integers cannot be used to index on a `[{integer}; 3]` 13 --> $DIR/negative-literal-index.rs:17:7 14 | 15LL | x[-1]; 16 | ^^ cannot use a negative integer for indexing on `[{integer}; 3]` 17 | 18help: to access an element starting from the end of the `[{integer}; 3]`, compute the index 19 | 20LL | x[x.len() -1]; 21 | +++++++ 22 23error: negative integers cannot be used to index on a `[{integer}; 3]` 24 --> $DIR/negative-literal-index.rs:19:7 25 | 26LL | x[-1]; 27 | ^^ cannot use a negative integer for indexing on `[{integer}; 3]` 28 | 29help: to access an element starting from the end of the `[{integer}; 3]`, compute the index 30 | 31LL | x[x.len() -1]; 32 | +++++++ 33 34error: aborting due to 3 previous errors 35