@@ -440,9 +440,9 @@ impl Foo {
440
440
}
441
441
```
442
442
443
- Please check if the method's argument list should have contained self,
444
- &self, or &mut self (in case you didn't want to create a static method),
445
- and add it if so. Example:
443
+ Please check if the method's argument list should have contained ` self` ,
444
+ ` &self` , or ` &mut self` (in case you didn't want to create a static
445
+ method), and add it if so. Example:
446
446
447
447
```
448
448
struct Foo;
@@ -458,10 +458,18 @@ impl Foo {
458
458
"## ,
459
459
460
460
E0425 : r##"
461
- An unresolved name was used. Example of erroneous code :
461
+ An unresolved name was used. Example of erroneous codes :
462
462
463
463
```
464
- something_that_doesnt_exist::foo; // error: unresolved name `f::foo`
464
+ something_that_doesnt_exist::foo;
465
+ // error: unresolved name `something_that_doesnt_exist::foo`
466
+
467
+ // or:
468
+ trait Foo {
469
+ fn bar() {
470
+ Self; // error: unresolved name `Self`
471
+ }
472
+ }
465
473
```
466
474
467
475
Please verify you didn't misspell the name or that you're not using an
@@ -489,8 +497,7 @@ loop {
489
497
}
490
498
```
491
499
492
- Please verify you didn't misspell the label name or you did declare
493
- it. Example:
500
+ Please verify you spelt or declare the label correctly. Example:
494
501
495
502
```
496
503
'a: loop {
@@ -541,8 +548,8 @@ use {self}; // error: `self` import can only appear in an import list with a
541
548
// non-empty prefix
542
549
```
543
550
544
- You can't import the current module in itself, please remove this import or
545
- verify you didn't misspell it.
551
+ You cannot import the current module into itself, please remove this import
552
+ or verify you didn't misspell it.
546
553
"## ,
547
554
548
555
E0432 : r##"
0 commit comments