E2023 Parse Errors

duplicate-declaration

name already declared in scope

When this occurs

Re-declaring same name in scope

Example error message

error[E2023]: 'x' is already declared in this scope

How to fix

Rename one of the duplicate declarations or remove the redundant one.

Related errors