]> git.lizzy.rs Git - rust.git/blob - src/test/ui/suggestions/unused-closure-argument.stderr
Rollup merge of #90420 - GuillaumeGomez:rustdoc-internals-feature, r=camelid
[rust.git] / src / test / ui / suggestions / unused-closure-argument.stderr
1 error: unused variable: `x`
2   --> $DIR/unused-closure-argument.rs:12:23
3    |
4 LL |         .map(|Point { x, y }| y)
5    |                       ^ help: try ignoring the field: `x: _`
6    |
7 note: the lint level is defined here
8   --> $DIR/unused-closure-argument.rs:1:9
9    |
10 LL | #![deny(unused_variables)]
11    |         ^^^^^^^^^^^^^^^^
12
13 error: unused variable: `x`
14   --> $DIR/unused-closure-argument.rs:17:15
15    |
16 LL |         .map(|x| 4)
17    |               ^ help: if this is intentional, prefix it with an underscore: `_x`
18
19 error: aborting due to 2 previous errors
20