summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/explicit_iter_loop.stderr
blob: 725d9b63cf8d6e3c5d22b452a15be4e780548c0b (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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
error: it is more concise to loop over references to containers instead of using explicit iteration methods
  --> $DIR/explicit_iter_loop.rs:17:14
   |
LL |     for _ in vec.iter() {}
   |              ^^^^^^^^^^ help: to write this more concisely, try: `&vec`
   |
note: the lint level is defined here
  --> $DIR/explicit_iter_loop.rs:1:9
   |
LL | #![deny(clippy::explicit_iter_loop)]
   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^

error: it is more concise to loop over references to containers instead of using explicit iteration methods
  --> $DIR/explicit_iter_loop.rs:18:14
   |
LL |     for _ in vec.iter_mut() {}
   |              ^^^^^^^^^^^^^^ help: to write this more concisely, try: `&mut vec`

error: it is more concise to loop over references to containers instead of using explicit iteration methods
  --> $DIR/explicit_iter_loop.rs:21:14
   |
LL |     for _ in rvec.iter() {}
   |              ^^^^^^^^^^^ help: to write this more concisely, try: `rvec`

error: it is more concise to loop over references to containers instead of using explicit iteration methods
  --> $DIR/explicit_iter_loop.rs:30:14
   |
LL |     for _ in [1, 2, 3].iter() {}
   |              ^^^^^^^^^^^^^^^^ help: to write this more concisely, try: `&[1, 2, 3]`

error: it is more concise to loop over references to containers instead of using explicit iteration methods
  --> $DIR/explicit_iter_loop.rs:34:14
   |
LL |     for _ in [0; 32].iter() {}
   |              ^^^^^^^^^^^^^^ help: to write this more concisely, try: `&[0; 32]`

error: it is more concise to loop over references to containers instead of using explicit iteration methods
  --> $DIR/explicit_iter_loop.rs:35:14
   |
LL |     for _ in [0; 33].iter() {}
   |              ^^^^^^^^^^^^^^ help: to write this more concisely, try: `&[0; 33]`

error: it is more concise to loop over references to containers instead of using explicit iteration methods
  --> $DIR/explicit_iter_loop.rs:38:14
   |
LL |     for _ in ll.iter() {}
   |              ^^^^^^^^^ help: to write this more concisely, try: `&ll`

error: it is more concise to loop over references to containers instead of using explicit iteration methods
  --> $DIR/explicit_iter_loop.rs:40:14
   |
LL |     for _ in rll.iter() {}
   |              ^^^^^^^^^^ help: to write this more concisely, try: `rll`

error: it is more concise to loop over references to containers instead of using explicit iteration methods
  --> $DIR/explicit_iter_loop.rs:43:14
   |
LL |     for _ in vd.iter() {}
   |              ^^^^^^^^^ help: to write this more concisely, try: `&vd`

error: it is more concise to loop over references to containers instead of using explicit iteration methods
  --> $DIR/explicit_iter_loop.rs:45:14
   |
LL |     for _ in rvd.iter() {}
   |              ^^^^^^^^^^ help: to write this more concisely, try: `rvd`

error: it is more concise to loop over references to containers instead of using explicit iteration methods
  --> $DIR/explicit_iter_loop.rs:48:14
   |
LL |     for _ in bh.iter() {}
   |              ^^^^^^^^^ help: to write this more concisely, try: `&bh`

error: it is more concise to loop over references to containers instead of using explicit iteration methods
  --> $DIR/explicit_iter_loop.rs:51:14
   |
LL |     for _ in hm.iter() {}
   |              ^^^^^^^^^ help: to write this more concisely, try: `&hm`

error: it is more concise to loop over references to containers instead of using explicit iteration methods
  --> $DIR/explicit_iter_loop.rs:54:14
   |
LL |     for _ in bt.iter() {}
   |              ^^^^^^^^^ help: to write this more concisely, try: `&bt`

error: it is more concise to loop over references to containers instead of using explicit iteration methods
  --> $DIR/explicit_iter_loop.rs:57:14
   |
LL |     for _ in hs.iter() {}
   |              ^^^^^^^^^ help: to write this more concisely, try: `&hs`

error: it is more concise to loop over references to containers instead of using explicit iteration methods
  --> $DIR/explicit_iter_loop.rs:60:14
   |
LL |     for _ in bs.iter() {}
   |              ^^^^^^^^^ help: to write this more concisely, try: `&bs`

error: it is more concise to loop over references to containers instead of using explicit iteration methods
  --> $DIR/explicit_iter_loop.rs:149:14
   |
LL |     for _ in x.iter() {}
   |              ^^^^^^^^ help: to write this more concisely, try: `&x`

error: it is more concise to loop over references to containers instead of using explicit iteration methods
  --> $DIR/explicit_iter_loop.rs:150:14
   |
LL |     for _ in x.iter_mut() {}
   |              ^^^^^^^^^^^^ help: to write this more concisely, try: `&mut x`

error: it is more concise to loop over references to containers instead of using explicit iteration methods
  --> $DIR/explicit_iter_loop.rs:153:14
   |
LL |     for _ in r.iter() {}
   |              ^^^^^^^^ help: to write this more concisely, try: `r`

error: aborting due to 18 previous errors