@@ -484,7 +484,11 @@ use something::{self, self}; // error: `self` import can only appear once in
484
484
```
485
485
486
486
Please verify you didn't misspell the import name or remove the duplicated
487
- `self` import.
487
+ `self` import. Example:
488
+
489
+ ```
490
+ use something::self; // ok!
491
+ ```
488
492
"## ,
489
493
490
494
E0431 : r##"
@@ -499,6 +503,25 @@ You can't import the current module in itself, please remove this import or
499
503
verify you didn't misspell it.
500
504
"## ,
501
505
506
+ E0432 : r##"
507
+ An import was unresolved. Erroneous code example:
508
+
509
+ ```
510
+ use something::Foo; // error: unresolved import `something::Foo`.
511
+ ```
512
+
513
+ Please verify you didn't misspell the import name or the import does exist
514
+ in the module from where you tried to import it. Example:
515
+
516
+ ```
517
+ use something::Foo; // ok!
518
+
519
+ mod something {
520
+ pub struct Foo;
521
+ }
522
+ ```
523
+ "## ,
524
+
502
525
E0433 : r##"
503
526
Invalid import. Example of erroneous code:
504
527
@@ -543,7 +566,6 @@ register_diagnostics! {
543
566
E0426 , // use of undeclared label
544
567
E0427 , // cannot use `ref` binding mode with ...
545
568
E0429 , // `self` imports are only allowed within a { } list
546
- E0432 , // unresolved import
547
569
E0434 , // can't capture dynamic environment in a fn item
548
570
E0435 , // attempt to use a non-constant value in a constant
549
571
E0437 , // type is not a member of trait
0 commit comments