]> git.proxmox.com Git - rustc.git/blobdiff - vendor/annotate-snippets-0.6.1/tests/fixtures/no-color/multiline_annotation.txt
New upstream version 1.52.1+dfsg1
[rustc.git] / vendor / annotate-snippets-0.6.1 / tests / fixtures / no-color / multiline_annotation.txt
diff --git a/vendor/annotate-snippets-0.6.1/tests/fixtures/no-color/multiline_annotation.txt b/vendor/annotate-snippets-0.6.1/tests/fixtures/no-color/multiline_annotation.txt
new file mode 100644 (file)
index 0000000..b900784
--- /dev/null
@@ -0,0 +1,14 @@
+error[E0308]: mismatched types
+  --> src/format.rs:51:5
+   |
+51 |   ) -> Option<String> {
+   |        -------------- expected `std::option::Option<std::string::String>` because of return type
+52 | /     for ann in annotations {
+53 | |         match (ann.range.0, ann.range.1) {
+54 | |             (None, None) => continue,
+55 | |             (Some(start), Some(end)) if start > end_index || end < start_index => continue,
+...  |
+71 | |         }
+72 | |     }
+   | |_____^ expected enum `std::option::Option`, found ()
+   |