about summary refs log tree commit diff
path: root/tests/ui/frontmatter/hyphen-in-infostring-non-leading.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/frontmatter/hyphen-in-infostring-non-leading.rs')
-rw-r--r--tests/ui/frontmatter/hyphen-in-infostring-non-leading.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/ui/frontmatter/hyphen-in-infostring-non-leading.rs b/tests/ui/frontmatter/hyphen-in-infostring-non-leading.rs
new file mode 100644
index 00000000000..35e7b96ff87
--- /dev/null
+++ b/tests/ui/frontmatter/hyphen-in-infostring-non-leading.rs
@@ -0,0 +1,9 @@
+--- Cargo-toml
+---
+
+// infostrings can contain hyphens as long as a hyphen isn't the first character.
+//@ check-pass
+
+#![feature(frontmatter)]
+
+fn main() {}