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 551a74d commit 95ad630Copy full SHA for 95ad630
src/librustc/diagnostics.rs
@@ -168,6 +168,12 @@ match x {
168
```
169
"##,
170
171
+E0010: r##"
172
+The value of statics and constants must be known at compile time, and they live
173
+for the entire lifetime of a program. Creating a boxed value allocates memory on
174
+the heap at runtime, and therefore cannot be done at compile time.
175
+"##,
176
+
177
E0013: r##"
178
Static and const variables can refer to other const variables. But a const
179
variable cannot refer to a static variable. For example, `Y` cannot refer to `X`
@@ -478,7 +484,6 @@ a compile-time constant.
478
484
}
479
485
480
486
register_diagnostics! {
481
- E0010,
482
487
E0011,
483
488
E0012,
489
E0014,
0 commit comments