1 error: parameter is only used in recursion
2 --> $DIR/only_used_in_recursion.rs:11:27
4 LL | fn _one_unused(flag: u32, a: usize) -> usize {
5 | ^ help: if this is intentional, prefix it with an underscore: `_a`
7 note: parameter used here
8 --> $DIR/only_used_in_recursion.rs:12:53
10 LL | if flag == 0 { 0 } else { _one_unused(flag - 1, a) }
12 = note: `-D clippy::only-used-in-recursion` implied by `-D warnings`
14 error: parameter is only used in recursion
15 --> $DIR/only_used_in_recursion.rs:15:27
17 LL | fn _two_unused(flag: u32, a: u32, b: i32) -> usize {
18 | ^ help: if this is intentional, prefix it with an underscore: `_a`
20 note: parameter used here
21 --> $DIR/only_used_in_recursion.rs:16:53
23 LL | if flag == 0 { 0 } else { _two_unused(flag - 1, a, b) }
26 error: parameter is only used in recursion
27 --> $DIR/only_used_in_recursion.rs:15:35
29 LL | fn _two_unused(flag: u32, a: u32, b: i32) -> usize {
30 | ^ help: if this is intentional, prefix it with an underscore: `_b`
32 note: parameter used here
33 --> $DIR/only_used_in_recursion.rs:16:56
35 LL | if flag == 0 { 0 } else { _two_unused(flag - 1, a, b) }
38 error: parameter is only used in recursion
39 --> $DIR/only_used_in_recursion.rs:19:26
41 LL | fn _with_calc(flag: u32, a: i64) -> usize {
42 | ^ help: if this is intentional, prefix it with an underscore: `_a`
44 note: parameter used here
45 --> $DIR/only_used_in_recursion.rs:23:32
47 LL | _with_calc(flag - 1, (-a + 10) * 5)
50 error: parameter is only used in recursion
51 --> $DIR/only_used_in_recursion.rs:32:33
53 LL | fn _used_with_unused(flag: u32, a: i32, b: i32) -> usize {
54 | ^ help: if this is intentional, prefix it with an underscore: `_a`
56 note: parameter used here
57 --> $DIR/only_used_in_recursion.rs:36:38
59 LL | _used_with_unused(flag - 1, -a, a + b)
62 error: parameter is only used in recursion
63 --> $DIR/only_used_in_recursion.rs:32:41
65 LL | fn _used_with_unused(flag: u32, a: i32, b: i32) -> usize {
66 | ^ help: if this is intentional, prefix it with an underscore: `_b`
68 note: parameter used here
69 --> $DIR/only_used_in_recursion.rs:36:45
71 LL | _used_with_unused(flag - 1, -a, a + b)
74 error: parameter is only used in recursion
75 --> $DIR/only_used_in_recursion.rs:40:35
77 LL | fn _codependent_unused(flag: u32, a: i32, b: i32) -> usize {
78 | ^ help: if this is intentional, prefix it with an underscore: `_a`
80 note: parameter used here
81 --> $DIR/only_used_in_recursion.rs:44:39
83 LL | _codependent_unused(flag - 1, a * b, a + b)
86 error: parameter is only used in recursion
87 --> $DIR/only_used_in_recursion.rs:40:43
89 LL | fn _codependent_unused(flag: u32, a: i32, b: i32) -> usize {
90 | ^ help: if this is intentional, prefix it with an underscore: `_b`
92 note: parameter used here
93 --> $DIR/only_used_in_recursion.rs:44:43
95 LL | _codependent_unused(flag - 1, a * b, a + b)
98 error: parameter is only used in recursion
99 --> $DIR/only_used_in_recursion.rs:48:30
101 LL | fn _not_primitive(flag: u32, b: String) -> usize {
102 | ^ help: if this is intentional, prefix it with an underscore: `_b`
104 note: parameter used here
105 --> $DIR/only_used_in_recursion.rs:49:56
107 LL | if flag == 0 { 0 } else { _not_primitive(flag - 1, b) }
110 error: parameter is only used in recursion
111 --> $DIR/only_used_in_recursion.rs:55:29
113 LL | fn _method(flag: usize, a: usize) -> usize {
114 | ^ help: if this is intentional, prefix it with an underscore: `_a`
116 note: parameter used here
117 --> $DIR/only_used_in_recursion.rs:56:59
119 LL | if flag == 0 { 0 } else { Self::_method(flag - 1, a) }
122 error: parameter is only used in recursion
123 --> $DIR/only_used_in_recursion.rs:59:22
125 LL | fn _method_self(&self, flag: usize, a: usize) -> usize {
128 note: parameter used here
129 --> $DIR/only_used_in_recursion.rs:60:35
131 LL | if flag == 0 { 0 } else { self._method_self(flag - 1, a) }
134 error: parameter is only used in recursion
135 --> $DIR/only_used_in_recursion.rs:59:41
137 LL | fn _method_self(&self, flag: usize, a: usize) -> usize {
138 | ^ help: if this is intentional, prefix it with an underscore: `_a`
140 note: parameter used here
141 --> $DIR/only_used_in_recursion.rs:60:63
143 LL | if flag == 0 { 0 } else { self._method_self(flag - 1, a) }
146 error: parameter is only used in recursion
147 --> $DIR/only_used_in_recursion.rs:70:26
149 LL | fn method(flag: u32, a: usize) -> usize {
150 | ^ help: if this is intentional, prefix it with an underscore: `_a`
152 note: parameter used here
153 --> $DIR/only_used_in_recursion.rs:71:58
155 LL | if flag == 0 { 0 } else { Self::method(flag - 1, a) }
158 error: parameter is only used in recursion
159 --> $DIR/only_used_in_recursion.rs:74:38
161 LL | fn method_self(&self, flag: u32, a: usize) -> usize {
162 | ^ help: if this is intentional, prefix it with an underscore: `_a`
164 note: parameter used here
165 --> $DIR/only_used_in_recursion.rs:75:62
167 LL | if flag == 0 { 0 } else { self.method_self(flag - 1, a) }
170 error: parameter is only used in recursion
171 --> $DIR/only_used_in_recursion.rs:100:26
173 LL | fn method(flag: u32, a: usize) -> usize {
174 | ^ help: if this is intentional, prefix it with an underscore: `_a`
176 note: parameter used here
177 --> $DIR/only_used_in_recursion.rs:101:58
179 LL | if flag == 0 { 0 } else { Self::method(flag - 1, a) }
182 error: parameter is only used in recursion
183 --> $DIR/only_used_in_recursion.rs:104:38
185 LL | fn method_self(&self, flag: u32, a: usize) -> usize {
186 | ^ help: if this is intentional, prefix it with an underscore: `_a`
188 note: parameter used here
189 --> $DIR/only_used_in_recursion.rs:105:62
191 LL | if flag == 0 { 0 } else { self.method_self(flag - 1, a) }
194 error: aborting due to 16 previous errors