summaryrefslogtreecommitdiffstats
path: root/compiler/rustc_error_codes/src/error_codes/E0431.md
blob: 1b70f5f1d7b7609ca09b91270c0accacf8ac24b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
An invalid `self` import was made.

Erroneous code example:

```compile_fail,E0431
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.