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
This commit is contained in:
parent
2772a29e92
commit
14c5900a70
8
src/test/compile-fail/ext-after-attrib.rs
Normal file
8
src/test/compile-fail/ext-after-attrib.rs
Normal file
@ -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() { }
|
Loading…
x
Reference in New Issue
Block a user