E0431 - Error codes index
Description: Book listing all Rust error codes

## 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 E0431

An invalid `self` import was made.

Erroneous code example:

    #![allow(unused)]
    fn main() {
    use {self}; // error: `self` import can only appear in an import list with a
                //        non-empty prefix
    }

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