1 error: try not to call a closure in the expression where it is declared
2 --> $DIR/redundant_closure_call_fixable.rs:16:13
4 LL | let a = (|| 42)();
5 | ^^^^^^^^^ help: try doing something like: `42`
7 = note: `-D clippy::redundant-closure-call` implied by `-D warnings`
9 error: try not to call a closure in the expression where it is declared
10 --> $DIR/redundant_closure_call_fixable.rs:17:13
12 LL | let b = (async || {
14 LL | | let x = something().await;
15 LL | | let y = something_else().await;
20 help: try doing something like
23 LL + let x = something().await;
24 LL + let y = something_else().await;
29 error: try not to call a closure in the expression where it is declared
30 --> $DIR/redundant_closure_call_fixable.rs:22:13
40 help: try doing something like
49 error: try not to call a closure in the expression where it is declared
50 --> $DIR/redundant_closure_call_fixable.rs:27:13
52 LL | let d = (async || something().await)();
53 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try doing something like: `async { something().await }`
55 error: aborting due to 4 previous errors