]> git.lizzy.rs Git - rust.git/blob - tests/ui/get_first.stderr
Auto merge of #9684 - kraktus:ref_option_ref, r=xFrednet
[rust.git] / tests / ui / get_first.stderr
1 error: accessing first element with `x.get(0)`
2   --> $DIR/get_first.rs:19: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:24: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:29: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