compiler/rustc_error_codes/src/error_codes/E0010.md MARKDOWN 12 lines View on github.com → Search inside
1#### Note: this error code is no longer emitted by the compiler.23The value of statics and constants must be known at compile time, and they live4for the entire lifetime of a program. Creating a boxed value allocates memory on5the heap at runtime, and therefore cannot be done at compile time.67Erroneous code example:89```ignore (no longer emitted)10const CON : Vec<i32> = vec![1, 2, 3];11```

Findings

✓ No findings reported for this file.

Get this view in your editor

Same data, no extra tab — call code_get_file + code_get_findings over MCP from Claude/Cursor/Copilot.