about summary refs log tree commit diff
path: root/tests/ui/did_you_mean/issue-46718-struct-pattern-dotdotdot.stderr
blob: 633f331a13a4a0a08285dfb9d3dd206fc09b23ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
error: expected field pattern, found `...`
  --> $DIR/issue-46718-struct-pattern-dotdotdot.rs:11:55
   |
LL |             PersonalityInventory { expressivity: exp, ... } => exp
   |                                                       ^^^
   |
help: to omit remaining fields, use `..`
   |
LL -             PersonalityInventory { expressivity: exp, ... } => exp
LL +             PersonalityInventory { expressivity: exp, .. } => exp
   |

error: aborting due to 1 previous error