File tree Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -457,6 +457,22 @@ let Foo = 12i32; // ok!
457
457
The goal here is to avoid a conflict of names.
458
458
"## ,
459
459
460
+ E0415 : r##"
461
+ More than one parameter have the same name. Example of erroneous
462
+ code:
463
+
464
+ ```
465
+ fn foo(f: i32, f: i32) {} // error: identifier `f` is bound more than
466
+ // once in this parameter list
467
+ ```
468
+
469
+ Please verify you didn't misspell parameters' name. Example:
470
+
471
+ ```
472
+ fn foo(f: i32, g: i32) {} // ok!
473
+ ```
474
+ "## ,
475
+
460
476
E0417 : r##"
461
477
A static variable was referenced in a pattern. Example of erroneous code:
462
478
@@ -780,7 +796,6 @@ register_diagnostics! {
780
796
E0410 , // variable from pattern is not bound in pattern 1
781
797
E0411 , // use of `Self` outside of an impl or trait
782
798
E0414 , // only irrefutable patterns allowed here
783
- E0415 , // identifier is bound more than once in this parameter list
784
799
E0416 , // identifier is bound more than once in the same pattern
785
800
E0418 , // is not an enum variant, struct or const
786
801
E0420 , // is not an associated const
You can’t perform that action at this time.
0 commit comments