summaryrefslogtreecommitdiffstats
path: root/src/test/ui/parser/shebang/shebang-must-start-file.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/parser/shebang/shebang-must-start-file.rs')
-rw-r--r--src/test/ui/parser/shebang/shebang-must-start-file.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/test/ui/parser/shebang/shebang-must-start-file.rs b/src/test/ui/parser/shebang/shebang-must-start-file.rs
new file mode 100644
index 000000000..e0392572d
--- /dev/null
+++ b/src/test/ui/parser/shebang/shebang-must-start-file.rs
@@ -0,0 +1,6 @@
+// something on the first line for tidy
+#!/bin/bash //~ expected `[`, found `/`
+
+fn main() {
+ println!("ok!");
+}