1 error: accessing last element with `x.get(x.len() - 1)`
2 --> $DIR/get_last_with_len.rs:7:13
4 LL | let _ = x.get(x.len() - 1); // ~ERROR Use x.last()
5 | ^^^^^^^^^^^^^^^^^^ help: try: `x.last()`
7 = note: `-D clippy::get-last-with-len` implied by `-D warnings`
9 error: aborting due to previous error