File tree Expand file tree Collapse file tree 1 file changed +27
-1
lines changed Expand file tree Collapse file tree 1 file changed +27
-1
lines changed Original file line number Diff line number Diff line change @@ -485,6 +485,33 @@ match 0 {
485
485
```
486
486
"## ,
487
487
488
+ E0419 : r##"
489
+ An unknown enum variant, struct or const was used. Example of
490
+ erroneous code:
491
+
492
+ ```
493
+ match 0 {
494
+ Something::Foo => {} // error: unresolved enum variant, struct
495
+ // or const `Foo`
496
+ }
497
+ ```
498
+
499
+ Please verify you didn't misspell it or the enum variant, struct
500
+ or const was well declared and/or imported. Example:
501
+
502
+ ```
503
+ enum Something {
504
+ Foo,
505
+ NotFoo,
506
+ }
507
+
508
+ match Something::NotFoo {
509
+ Something::Foo => {} // ok!
510
+ _ => {}
511
+ }
512
+ ```
513
+ "## ,
514
+
488
515
E0423 : r##"
489
516
A `struct` variant name was used like a function name. Example of
490
517
erroneous code:
@@ -756,7 +783,6 @@ register_diagnostics! {
756
783
E0415 , // identifier is bound more than once in this parameter list
757
784
E0416 , // identifier is bound more than once in the same pattern
758
785
E0418 , // is not an enum variant, struct or const
759
- E0419 , // unresolved enum variant, struct or const
760
786
E0420 , // is not an associated const
761
787
E0421 , // unresolved associated const
762
788
E0422 , // does not name a structure
You can’t perform that action at this time.
0 commit comments