summaryrefslogtreecommitdiffstats
path: root/tests/ui/suggestions/unused-closure-argument.stderr
blob: 55195ce50a13ec364fe6b74250652e9b0f671ecc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
error: unused variable: `x`
  --> $DIR/unused-closure-argument.rs:12:23
   |
LL |         .map(|Point { x, y }| y)
   |                       ^ help: try ignoring the field: `x: _`
   |
note: the lint level is defined here
  --> $DIR/unused-closure-argument.rs:1:9
   |
LL | #![deny(unused_variables)]
   |         ^^^^^^^^^^^^^^^^

error: unused variable: `x`
  --> $DIR/unused-closure-argument.rs:17:15
   |
LL |         .map(|x| 4)
   |               ^ help: if this is intentional, prefix it with an underscore: `_x`

error: aborting due to 2 previous errors