1 error: parameter is only used in recursion
2 --> $DIR/only_used_in_recursion2.rs:3:35
4 LL | fn _with_inner(flag: u32, a: u32, b: u32) -> usize {
5 | ^ help: if this is intentional, prefix it with an underscore: `_b`
7 note: parameter used here
8 --> $DIR/only_used_in_recursion2.rs:9:52
10 LL | if flag == 0 { 0 } else { _with_inner(flag, a, b + x) }
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_recursion2.rs:4:25
17 LL | fn inner(flag: u32, a: u32) -> u32 {
18 | ^ help: if this is intentional, prefix it with an underscore: `_a`
20 note: parameter used here
21 --> $DIR/only_used_in_recursion2.rs:5:47
23 LL | if flag == 0 { 0 } else { inner(flag, a) }
26 error: parameter is only used in recursion
27 --> $DIR/only_used_in_recursion2.rs:12:34
29 LL | fn _with_closure(a: Option<u32>, b: u32, f: impl Fn(u32, u32) -> Option<u32>) -> u32 {
30 | ^ help: if this is intentional, prefix it with an underscore: `_b`
32 note: parameter used here
33 --> $DIR/only_used_in_recursion2.rs:14:32
35 LL | _with_closure(Some(x), b, f)
38 error: parameter is only used in recursion
39 --> $DIR/only_used_in_recursion2.rs:62:37
41 LL | fn overwritten_param(flag: u32, mut a: usize) -> usize {
42 | ^ help: if this is intentional, prefix it with an underscore: `_a`
44 note: parameter used here
45 --> $DIR/only_used_in_recursion2.rs:70:29
47 LL | overwritten_param(flag, a)
50 error: parameter is only used in recursion
51 --> $DIR/only_used_in_recursion2.rs:73:32
53 LL | fn field_direct(flag: u32, mut a: (usize,)) -> usize {
54 | ^ help: if this is intentional, prefix it with an underscore: `_a`
56 note: parameter used here
57 --> $DIR/only_used_in_recursion2.rs:78:32
59 LL | field_direct(flag - 1, a)
62 error: aborting due to 5 previous errors