File: issue_9.toml

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 (28 lines) | stat: -rw-r--r-- 702 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
[message]
level = "Error"
title = "expected one of `.`, `;`, `?`, or an operator, found `for`"

[[message.snippets]]
source = "let x = vec![1];"
line_start = 4
origin = "/code/rust/src/test/ui/annotate-snippet/suggestion.rs"
[[message.snippets.annotations]]
label = "move occurs because `x` has type `std::vec::Vec<i32>`, which does not implement the `Copy` trait"
level = "Warning"
range = [4, 5]

[[message.snippets]]
source = "let y = x;"
line_start = 7
[[message.snippets.annotations]]
label = "value moved here"
level = "Warning"
range = [8, 9]

[[message.snippets]]
source = "x;"
line_start = 9
[[message.snippets.annotations]]
label = "value used here after move"
level = "Error"
range = [0, 1]