mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 06:51:58 +00:00
21 lines
564 B
Plaintext
21 lines
564 B
Plaintext
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
|
|
|