about summary refs log tree commit diff
path: root/tests/ui/proc-macro/derive-bad.rs
blob: 9b9a2bc33c946a9834f4293753cf69fd62169976 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
//@ proc-macro: derive-bad.rs
//@ ignore-backends: gcc

#[macro_use]
extern crate derive_bad;

#[derive(A)]
//~^ ERROR proc-macro derive produced unparsable tokens
//~| ERROR expected `:`, found `}`
struct A; //~ ERROR the name `A` is defined multiple times

fn main() {}