Error code E0428

A type or module has been defined more than once.

Erroneous code example:

struct Bar;
struct Bar; // error: duplicate definition of value `Bar`
Run

Please verify you didn’t misspell the type/module’s name or remove/rename the duplicated one. Example:

struct Bar;
struct Bar2; // ok!
Run

Back to list of error codes