File tree Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -397,6 +397,23 @@ impl Bar {
397
397
```
398
398
"## ,
399
399
400
+ E0412 : r##"
401
+ An undeclared type name was used. Example of erroneous code:
402
+
403
+ ```
404
+ impl Something {} // error: use of undeclared type name `Something`
405
+ ```
406
+
407
+ To fix this error, please verify you didn't misspell the type name or
408
+ you did declare it. Example:
409
+
410
+ ```
411
+ struct Something;
412
+
413
+ impl Something {}
414
+ ```
415
+ "## ,
416
+
400
417
E0413 : r##"
401
418
A declaration shadows an enum variant or unit-like struct in scope.
402
419
Example of erroneous code:
@@ -725,7 +742,6 @@ register_diagnostics! {
725
742
// pattern #1
726
743
E0410 , // variable from pattern is not bound in pattern 1
727
744
E0411 , // use of `Self` outside of an impl or trait
728
- E0412 , // use of undeclared
729
745
E0414 , // only irrefutable patterns allowed here
730
746
E0415 , // identifier is bound more than once in this parameter list
731
747
E0416 , // identifier is bound more than once in the same pattern
You can’t perform that action at this time.
0 commit comments