fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #69854 - pietroalbini:stable-next, r=Centrilb8cedc00407

1.42.0
542 B20 linesraw
1error: unused variable: `x`
2  --> $DIR/unused-closure-argument.rs:12:23
3   |
4LL |         .map(|Point { x, y }| y)
5   |                       ^ help: try ignoring the field: `x: _`
6   |
7note: lint level defined here
8  --> $DIR/unused-closure-argument.rs:1:9
9   |
10LL | #![deny(unused_variables)]
11   |         ^^^^^^^^^^^^^^^^
12
13error: unused variable: `x`
14  --> $DIR/unused-closure-argument.rs:17:15
15   |
16LL |         .map(|x| 4)
17   |               ^ help: consider prefixing with an underscore: `_x`
18
19error: aborting due to 2 previous errors
20