File: issue_9.svg

package info (click to toggle)
rust-annotate-snippets 0.11.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 524 kB
  • sloc: makefile: 2
file content (45 lines) | stat: -rw-r--r-- 1,512 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<svg width="911px" height="236px" xmlns="http://www.w3.org/2000/svg">
  <style>
    .fg { fill: #AAAAAA }
    .bg { background: #000000 }
    .container {
      padding: 0 10px;
      line-height: 18px;
    }
    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>error: expected one of `.`, `;`, `?`, or an operator, found `for`</tspan>
</tspan>
    <tspan x="10px" y="46px"><tspan> --&gt; /code/rust/src/test/ui/annotate-snippet/suggestion.rs:4:5</tspan>
</tspan>
    <tspan x="10px" y="64px"><tspan>  |</tspan>
</tspan>
    <tspan x="10px" y="82px"><tspan>4 | let x = vec![1];</tspan>
</tspan>
    <tspan x="10px" y="100px"><tspan>  |     - move occurs because `x` has type `std::vec::Vec&lt;i32&gt;`, which does not implement the `Copy` trait</tspan>
</tspan>
    <tspan x="10px" y="118px"><tspan>  |</tspan>
</tspan>
    <tspan x="10px" y="136px"><tspan>7 | let y = x;</tspan>
</tspan>
    <tspan x="10px" y="154px"><tspan>  |         - value moved here</tspan>
</tspan>
    <tspan x="10px" y="172px"><tspan>  |</tspan>
</tspan>
    <tspan x="10px" y="190px"><tspan>9 | x;</tspan>
</tspan>
    <tspan x="10px" y="208px"><tspan>  | ^ value used here after move</tspan>
</tspan>
    <tspan x="10px" y="226px"><tspan>  |</tspan>
</tspan>
  </text>

</svg>