diff options
Diffstat (limited to 'tests/ui/proc-macro/derive-bad.rs')
-rw-r--r-- | tests/ui/proc-macro/derive-bad.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/ui/proc-macro/derive-bad.rs b/tests/ui/proc-macro/derive-bad.rs new file mode 100644 index 000000000..cb5188b5f --- /dev/null +++ b/tests/ui/proc-macro/derive-bad.rs @@ -0,0 +1,11 @@ +// aux-build:derive-bad.rs + +#[macro_use] +extern crate derive_bad; + +#[derive(A)] +//~^ ERROR proc-macro derive produced unparseable tokens +//~| ERROR expected `:`, found `}` +struct A; //~ ERROR the name `A` is defined multiple times + +fn main() {} |