]> git.lizzy.rs Git - rust.git/blob - compiler/rustc_error_codes/src/error_codes/E0430.md
Rollup merge of #92310 - ehuss:rustdoc-ice, r=estebank
[rust.git] / compiler / rustc_error_codes / src / error_codes / E0430.md
1 The `self` import appears more than once in the list.
2
3 Erroneous code example:
4
5 ```compile_fail,E0430
6 use something::{self, self}; // error: `self` import can only appear once in
7                              //        the list
8 ```
9
10 Please verify you didn't misspell the import name or remove the duplicated
11 `self` import. Example:
12
13 ```
14 # mod something {}
15 # fn main() {
16 use something::{self}; // ok!
17 # }
18 ```