| <svg width="961px" height="164px" xmlns="http://www.w3.org/2000/svg"> |
| <style> |
| .fg { fill: #AAAAAA } |
| .bg { background: #000000 } |
| .fg-bright-blue { fill: #5555FF } |
| .fg-bright-red { fill: #FF5555 } |
| .container { |
| padding: 0 10px; |
| line-height: 18px; |
| } |
| .bold { font-weight: bold; } |
| tspan { |
| font: 14px SFMono-Regular, Consolas, Liberation Mono, Menlo, monospace; |
| white-space: pre; |
| line-height: 18px; |
| } |
| </style> |
| |
| <rect width="100%" height="100%" y="0" rx="4.5" class="bg" /> |
| |
| <text xml:space="preserve" class="container fg"> |
| <tspan x="10px" y="28px"><tspan class="fg-bright-red bold">error[E0010]</tspan><tspan class="bold">: allocations are not allowed in constants</tspan> |
| </tspan> |
| <tspan x="10px" y="46px"><tspan> </tspan><tspan class="fg-bright-blue bold"> ╭▸ </tspan><tspan>$DIR/E0010-teach.rs:5:23</tspan> |
| </tspan> |
| <tspan x="10px" y="64px"><tspan> </tspan><tspan class="fg-bright-blue bold">│</tspan> |
| </tspan> |
| <tspan x="10px" y="82px"><tspan class="fg-bright-blue bold">LL</tspan><tspan> </tspan><tspan class="fg-bright-blue bold">│</tspan><tspan> const CON: Vec<i32> = </tspan><tspan class="fg-bright-red bold">vec![1, 2, 3]</tspan><tspan>; //~ ERROR E0010</tspan> |
| </tspan> |
| <tspan x="10px" y="100px"><tspan> </tspan><tspan class="fg-bright-blue bold">│</tspan><tspan> </tspan><tspan class="fg-bright-red bold">━━━━━━━━━━━━━</tspan><tspan> </tspan><tspan class="fg-bright-red bold">allocation not allowed in constants</tspan> |
| </tspan> |
| <tspan x="10px" y="118px"><tspan> </tspan><tspan class="fg-bright-blue bold">│</tspan> |
| </tspan> |
| <tspan x="10px" y="136px"><tspan> </tspan><tspan class="fg-bright-blue bold">╰ </tspan><tspan class="bold">note</tspan><tspan>: The runtime heap is not yet available at compile-time, so no runtime heap allocations can be created.</tspan> |
| </tspan> |
| <tspan x="10px" y="154px"> |
| </tspan> |
| </text> |
| |
| </svg> |