about summary refs log tree commit diff
path: root/tests/ui/frontmatter/shebang.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/frontmatter/shebang.rs')
-rw-r--r--tests/ui/frontmatter/shebang.rs13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/ui/frontmatter/shebang.rs b/tests/ui/frontmatter/shebang.rs
new file mode 100644
index 00000000000..abd983f219b
--- /dev/null
+++ b/tests/ui/frontmatter/shebang.rs
@@ -0,0 +1,13 @@
+#!/usr/bin/env -S cargo -Zscript
+---
+[dependencies]
+clap = "4"
+---
+
+//@ check-pass
+
+// Shebangs on a file can precede a frontmatter.
+
+#![feature(frontmatter)]
+
+fn main () {}