summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/shebang/shebang-comment.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/parser/shebang/shebang-comment.rs')
-rw-r--r--tests/ui/parser/shebang/shebang-comment.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/ui/parser/shebang/shebang-comment.rs b/tests/ui/parser/shebang/shebang-comment.rs
new file mode 100644
index 000000000..2b1ab0c57
--- /dev/null
+++ b/tests/ui/parser/shebang/shebang-comment.rs
@@ -0,0 +1,6 @@
+#!//bin/bash
+
+// check-pass
+fn main() {
+ println!("a valid shebang (that is also a rust comment)")
+}