2019-03-02 23:16:53 +00:00
|
|
|
error: unused variable: `x`
|
|
|
|
--> $DIR/unused-closure-argument.rs:12:23
|
|
|
|
|
|
|
|
|
LL | .map(|Point { x, y }| y)
|
|
|
|
| ^ help: try ignoring the field: `x: _`
|
|
|
|
|
|
2020-01-22 23:57:38 +00:00
|
|
|
note: the lint level is defined here
|
2019-03-02 23:16:53 +00:00
|
|
|
--> $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)
|
2020-03-23 08:02:46 +00:00
|
|
|
| ^ help: if this is intentional, prefix it with an underscore: `_x`
|
2019-03-02 23:16:53 +00:00
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|