summaryrefslogtreecommitdiffstats
path: root/vendor/annotate-snippets-0.8.0/tests/fixtures/no-color/multiple_annotations.toml
blob: 84efc5f179aaacc523ca58b594e41201fb605cbf (plain)
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
[[slices]]
source = """
fn add_title_line(result: &mut Vec<String>, main_annotation: Option<&Annotation>) {
    if let Some(annotation) = main_annotation {
        result.push(format_title_line(
            &annotation.annotation_type,
            None,
            &annotation.label,
        ));
    }
}
"""
line_start = 96
[[slices.annotations]]
label = "Variable defined here"
annotation_type = "Error"
range = [100, 110]
[[slices.annotations]]
label = "Referenced here"
annotation_type = "Error"
range = [184, 194]
[[slices.annotations]]
label = "Referenced again here"
annotation_type = "Error"
range = [243, 253]