Skip to content

Commit 14c5900

Browse files
committed
test: Add a compile-fail test for attribute/syntax parsing
I don't currently know how to deal with syntax extensions that appear betweeen an attribute and an item, so this test captures the error that occurs. Issue #487
1 parent 2772a29 commit 14c5900

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
// xfail-stage0
2+
// error-pattern:expecting \[, found fmt
3+
4+
// Don't know how to deal with a syntax extension appearing after an
5+
// item attribute. Probably could use a better error message.
6+
#[foo = "bar"]
7+
#fmt("baz")
8+
fn main() { }

0 commit comments

Comments
 (0)