about summary refs log tree commit diff
path: root/tests/ui/frontmatter/unclosed-6.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/frontmatter/unclosed-6.rs')
-rw-r--r--tests/ui/frontmatter/unclosed-6.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/ui/frontmatter/unclosed-6.rs b/tests/ui/frontmatter/unclosed-6.rs
new file mode 100644
index 00000000000..ea8d4702f63
--- /dev/null
+++ b/tests/ui/frontmatter/unclosed-6.rs
@@ -0,0 +1,12 @@
+---
+//~^ ERROR unclosed frontmatter
+🦀---
+ ---
+
+// This test checks the location of the --- recovered by the parser is not
+// incorrectly tracked during the less fortunate recovery case and multiple
+// candidates are found, as seen with #146847
+
+#![feature(frontmatter)]
+
+fn main() {}