]> git.proxmox.com Git - rustc.git/blob - vendor/annotate-snippets-0.8.0/tests/fixtures/no-color/multiple_annotations.toml
New upstream version 1.63.0+dfsg1
[rustc.git] / vendor / annotate-snippets-0.8.0 / tests / fixtures / no-color / multiple_annotations.toml
1 [[slices]]
2 source = """
3 fn add_title_line(result: &mut Vec<String>, main_annotation: Option<&Annotation>) {
4 if let Some(annotation) = main_annotation {
5 result.push(format_title_line(
6 &annotation.annotation_type,
7 None,
8 &annotation.label,
9 ));
10 }
11 }
12 """
13 line_start = 96
14 [[slices.annotations]]
15 label = "Variable defined here"
16 annotation_type = "Error"
17 range = [100, 110]
18 [[slices.annotations]]
19 label = "Referenced here"
20 annotation_type = "Error"
21 range = [184, 194]
22 [[slices.annotations]]
23 label = "Referenced again here"
24 annotation_type = "Error"
25 range = [243, 253]