We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 42bfeec + 95ad630 commit f9ecc6eCopy full SHA for f9ecc6e
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`
@@ -494,7 +500,6 @@ a compile-time constant.
494
500
}
495
501
496
502
register_diagnostics! {
497
- E0010,
498
503
E0011,
499
504
E0012,
505
E0014,
0 commit comments