summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/attr.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/parser/attr.rs')
-rw-r--r--tests/ui/parser/attr.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/ui/parser/attr.rs b/tests/ui/parser/attr.rs
new file mode 100644
index 000000000..42b2dfde8
--- /dev/null
+++ b/tests/ui/parser/attr.rs
@@ -0,0 +1,6 @@
+#![feature(lang_items)]
+
+fn main() {}
+
+#![lang = "foo"] //~ ERROR an inner attribute is not permitted in this context
+fn foo() {}