about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/test/compile-fail/ext-after-attrib.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/test/compile-fail/ext-after-attrib.rs b/src/test/compile-fail/ext-after-attrib.rs
new file mode 100644
index 00000000000..31786fcaf65
--- /dev/null
+++ b/src/test/compile-fail/ext-after-attrib.rs
@@ -0,0 +1,8 @@
+// xfail-stage0
+// error-pattern:expecting \[, found fmt
+
+// Don't know how to deal with a syntax extension appearing after an
+// item attribute. Probably could use a better error message.
+#[foo = "bar"]
+#fmt("baz")
+fn main() { }
\ No newline at end of file