]> git.lizzy.rs Git - rust.git/blob - clippy_tests/examples/eta.stderr
Fix the test suite after cargo update
[rust.git] / clippy_tests / examples / eta.stderr
1 error: redundant closure found
2  --> eta.rs:7:27
3   |
4 7 |     let a = Some(1u8).map(|a| foo(a));
5   |                           ^^^^^^^^^^ help: remove closure as shown: `foo`
6   |
7   = note: `-D redundant-closure` implied by `-D warnings`
8
9 error: redundant closure found
10  --> eta.rs:8:10
11   |
12 8 |     meta(|a| foo(a));
13   |          ^^^^^^^^^^ help: remove closure as shown: `foo`
14   |
15   = note: `-D redundant-closure` implied by `-D warnings`
16
17 error: redundant closure found
18  --> eta.rs:9:27
19   |
20 9 |     let c = Some(1u8).map(|a| {1+2; foo}(a));
21   |                           ^^^^^^^^^^^^^^^^^ help: remove closure as shown: `{1+2; foo}`
22   |
23   = note: `-D redundant-closure` implied by `-D warnings`
24
25 error: this expression borrows a reference that is immediately dereferenced by the compiler
26   --> eta.rs:11:21
27    |
28 11 |     all(&[1, 2, 3], &&2, |x, y| below(x, y)); //is adjusted
29    |                     ^^^
30    |
31    = note: `-D needless-borrow` implied by `-D warnings`
32
33 error: redundant closure found
34   --> eta.rs:18:27
35    |
36 18 |     let e = Some(1u8).map(|a| generic(a));
37    |                           ^^^^^^^^^^^^^^ help: remove closure as shown: `generic`
38    |
39    = note: `-D redundant-closure` implied by `-D warnings`
40
41 error: aborting due to previous error(s)
42
43
44 To learn more, run the command again with --verbose.