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 da2276e commit d3f3d38Copy full SHA for d3f3d38
src/librustc/diagnostics.rs
@@ -168,6 +168,11 @@ match x {
168
```
169
"##,
170
171
+E0010: r##"
172
+The value of static and const variables must be known at compile time, and they
173
+live for the entire lifetime of a program. They can not use allocation.
174
+"##,
175
+
176
E0015: r##"
177
The only function calls allowed in static or constant expressions are enum
178
variant constructors or struct constructors (for unit or tuple structs). This
@@ -459,7 +464,6 @@ a compile-time constant.
459
464
}
460
465
461
466
register_diagnostics! {
462
- E0010,
463
467
E0011,
468
E0012,
469
E0013,
0 commit comments