Error code E0431

An invalid self import was made.

Erroneous code example:

use {self}; // error: `self` import can only appear in an import list with a
            //        non-empty prefix
Run

You cannot import the current module into itself, please remove this import or verify you didn’t misspell it.

Back to list of error codes