fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: accessing first element with `x.get(0)` 2 --> $DIR/get_first.rs:17:13 3 | 4LL | let _ = x.get(0); // Use x.first() 5 | ^^^^^^^^ help: try: `x.first()` 6 | 7 = note: `-D clippy::get-first` implied by `-D warnings` 8 = help: to override `-D warnings` add `#[allow(clippy::get_first)]` 9 10error: accessing first element with `y.get(0)` 11 --> $DIR/get_first.rs:22:13 12 | 13LL | let _ = y.get(0); // Use y.first() 14 | ^^^^^^^^ help: try: `y.first()` 15 16error: accessing first element with `z.get(0)` 17 --> $DIR/get_first.rs:27:13 18 | 19LL | let _ = z.get(0); // Use z.first() 20 | ^^^^^^^^ help: try: `z.first()` 21 22error: aborting due to 3 previous errors 23