blob: 3ede08ee8f62d2917a86efc7b428138c3020465d [file] [log] [blame] [view]
#### Note: this error code is no longer emitted by the compiler.
The value of statics and constants must be known at compile time, and they live
for the entire lifetime of a program. Creating a boxed value allocates memory on
the heap at runtime, and therefore cannot be done at compile time.
Erroneous code example:
```ignore (no longer emitted)
const CON : Vec<i32> = vec![1, 2, 3];
```