summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/shebang/shebang-and-attrib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/parser/shebang/shebang-and-attrib.rs')
-rw-r--r--tests/ui/parser/shebang/shebang-and-attrib.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/ui/parser/shebang/shebang-and-attrib.rs b/tests/ui/parser/shebang/shebang-and-attrib.rs
new file mode 100644
index 000000000..61b89c655
--- /dev/null
+++ b/tests/ui/parser/shebang/shebang-and-attrib.rs
@@ -0,0 +1,9 @@
+#!/usr/bin/env run-cargo-script
+
+// check-pass
+#![allow(unused_variables)]
+
+
+fn main() {
+ let x = 5;
+}