We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0efc7f1 commit 1f81002Copy full SHA for 1f81002
src/librustc_resolve/diagnostics.rs
@@ -410,10 +410,10 @@ match 0 {
410
}
411
```
412
413
-The compiler needs to know the value of the pattern at compile time,
414
-which is not possible with a `static` variable. Please verify that the
415
-variable is spelled correctly and if so, try to use a `const` instead.
416
-Example:
+The compiler needs to know the value of the pattern at compile time;
+compile-time patterns can defined via const or enum items. Please verify
+that the identifier is spelled correctly, and if so, use a const instead
+of static to define it. Example:
417
418
419
const FOO : i32 = 0;
0 commit comments