about summary refs log tree commit diff
path: root/tests/ui/binding/struct-destructuring-repeated-bindings-9725.stderr
blob: f4d19bed41955e265396dfefa548b3cd69903e91 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
error[E0416]: identifier `foo` is bound more than once in the same pattern
  --> $DIR/struct-destructuring-repeated-bindings-9725.rs:5:18
   |
LL |     let A { foo, foo } = A { foo: 3 };
   |                  ^^^ used in a pattern more than once

error[E0025]: field `foo` bound multiple times in the pattern
  --> $DIR/struct-destructuring-repeated-bindings-9725.rs:5:18
   |
LL |     let A { foo, foo } = A { foo: 3 };
   |             ---  ^^^ multiple uses of `foo` in pattern
   |             |
   |             first use of `foo`

error: aborting due to 2 previous errors

Some errors have detailed explanations: E0025, E0416.
For more information about an error, try `rustc --explain E0025`.