E2013 Parse Errors

duplicate-field

field name already used

When this occurs

Struct with duplicate field names

Example error message

error[E2013]: duplicate field name 'x' in struct

How to fix

Rename one of the duplicate struct fields to have a unique name.

Related errors