about summary refs log tree commit diff
path: root/src/tools/clippy/tests/ui/get_first.stderr
blob: 4e19ebbc758927ed6917a76c044e691e6eb8c13d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
error: accessing first element with `x.get(0)`
  --> tests/ui/get_first.rs:17:13
   |
LL |     let _ = x.get(0);
   |             ^^^^^^^^ help: try: `x.first()`
   |
   = note: `-D clippy::get-first` implied by `-D warnings`
   = help: to override `-D warnings` add `#[allow(clippy::get_first)]`

error: accessing first element with `y.get(0)`
  --> tests/ui/get_first.rs:24:13
   |
LL |     let _ = y.get(0);
   |             ^^^^^^^^ help: try: `y.first()`

error: accessing first element with `z.get(0)`
  --> tests/ui/get_first.rs:31:13
   |
LL |     let _ = z.get(0);
   |             ^^^^^^^^ help: try: `z.first()`

error: accessing first element with `vecdeque.get(0)`
  --> tests/ui/get_first.rs:38:13
   |
LL |     let _ = vecdeque.get(0);
   |             ^^^^^^^^^^^^^^^ help: try: `vecdeque.front()`

error: accessing first element with `non_primitives.get(0)`
  --> tests/ui/get_first.rs:52:13
   |
LL |     let _ = non_primitives.get(0);
   |             ^^^^^^^^^^^^^^^^^^^^^ help: try: `non_primitives.first()`

error: aborting due to 5 previous errors