Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Error code E0428

A type or module has been defined more than once.

Erroneous code example:

#![allow(unused)] fn main() { struct Bar; struct Bar; // error: duplicate definition of value `Bar` }

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

#![allow(unused)] fn main() { struct Bar; struct Bar2; // ok! }