summaryrefslogtreecommitdiffstats
path: root/tests/ui/suggestions/ignore-nested-field-binding.stderr
blob: b2936a22a22f1a9970d329a78ed3b752aa2142c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
error: unused variable: `i`
  --> $DIR/ignore-nested-field-binding.rs:11:27
   |
LL | fn foo(Outer { o: Inner { i } }: Outer) {}
   |                           ^ help: try ignoring the field: `i: _`
   |
note: the lint level is defined here
  --> $DIR/ignore-nested-field-binding.rs:6:11
   |
LL | #![forbid(unused_variables)]
   |           ^^^^^^^^^^^^^^^^

error: unused variable: `i`
  --> $DIR/ignore-nested-field-binding.rs:17:28
   |
LL |     let Outer { o: Inner { i } } = s;
   |                            ^ help: try ignoring the field: `i: _`

error: aborting due to 2 previous errors