2022-06-04 06:34:07 -05:00
|
|
|
error: accessing first element with `x.get(0)`
|
2023-08-24 14:32:12 -05:00
|
|
|
--> $DIR/get_first.rs:17:13
|
2022-06-04 06:34:07 -05:00
|
|
|
|
|
2023-10-04 11:07:54 -05:00
|
|
|
LL | let _ = x.get(0);
|
2022-06-04 06:34:07 -05:00
|
|
|
| ^^^^^^^^ help: try: `x.first()`
|
|
|
|
|
|
|
|
|
= note: `-D clippy::get-first` implied by `-D warnings`
|
2023-08-01 07:02:21 -05:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::get_first)]`
|
2022-06-04 06:34:07 -05:00
|
|
|
|
|
|
|
error: accessing first element with `y.get(0)`
|
2023-10-04 11:07:54 -05:00
|
|
|
--> $DIR/get_first.rs:23:13
|
2022-06-04 06:34:07 -05:00
|
|
|
|
|
2023-10-04 11:07:54 -05:00
|
|
|
LL | let _ = y.get(0);
|
2022-06-04 06:34:07 -05:00
|
|
|
| ^^^^^^^^ help: try: `y.first()`
|
|
|
|
|
|
|
|
error: accessing first element with `z.get(0)`
|
2023-10-04 11:07:54 -05:00
|
|
|
--> $DIR/get_first.rs:29:13
|
2022-06-04 06:34:07 -05:00
|
|
|
|
|
2023-10-04 11:07:54 -05:00
|
|
|
LL | let _ = z.get(0);
|
2022-06-04 06:34:07 -05:00
|
|
|
| ^^^^^^^^ help: try: `z.first()`
|
|
|
|
|
2023-10-04 11:07:54 -05:00
|
|
|
error: accessing first element with `non_primitives.get(0)`
|
|
|
|
--> $DIR/get_first.rs:45:13
|
|
|
|
|
|
|
|
|
LL | let _ = non_primitives.get(0);
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^ help: try: `non_primitives.first()`
|
|
|
|
|
|
|
|
error: aborting due to 4 previous errors
|
2022-06-04 06:34:07 -05:00
|
|
|
|