summaryrefslogtreecommitdiffstats
path: root/vendor/annotate-snippets-0.8.0/tests/fixtures/no-color/multiple_annotations.toml
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/annotate-snippets-0.8.0/tests/fixtures/no-color/multiple_annotations.toml')
-rw-r--r--vendor/annotate-snippets-0.8.0/tests/fixtures/no-color/multiple_annotations.toml25
1 files changed, 25 insertions, 0 deletions
diff --git a/vendor/annotate-snippets-0.8.0/tests/fixtures/no-color/multiple_annotations.toml b/vendor/annotate-snippets-0.8.0/tests/fixtures/no-color/multiple_annotations.toml
new file mode 100644
index 000000000..84efc5f17
--- /dev/null
+++ b/vendor/annotate-snippets-0.8.0/tests/fixtures/no-color/multiple_annotations.toml
@@ -0,0 +1,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]