]> git.proxmox.com Git - rustc.git/blob - src/tools/clippy/tests/ui/get_first.stderr
New upstream version 1.72.1+dfsg1
[rustc.git] / src / tools / clippy / tests / ui / get_first.stderr
1 error: accessing first element with `x.get(0)`
2 --> $DIR/get_first.rs:20:13
3 |
4 LL | let _ = x.get(0); // Use x.first()
5 | ^^^^^^^^ help: try: `x.first()`
6 |
7 = note: `-D clippy::get-first` implied by `-D warnings`
8
9 error: accessing first element with `y.get(0)`
10 --> $DIR/get_first.rs:25:13
11 |
12 LL | let _ = y.get(0); // Use y.first()
13 | ^^^^^^^^ help: try: `y.first()`
14
15 error: accessing first element with `z.get(0)`
16 --> $DIR/get_first.rs:30:13
17 |
18 LL | let _ = z.get(0); // Use z.first()
19 | ^^^^^^^^ help: try: `z.first()`
20
21 error: aborting due to 3 previous errors
22