E4007 Names Errors

Names

a type with this name already exists; each struct and enum must have a unique name

When this occurs

Using module without import

Example error message

error[E4007]: cannot use 'math': module not imported

How to fix

Add `import @modulename` at the top of your file.

Related errors