summaryrefslogtreecommitdiffstats
path: root/tests/ui/proc-macro/macros-in-extern-derive.rs
blob: c8b26b00597dee378dfe5fa38e8bf793307a3031 (plain)
1
2
3
4
5
6
extern "C" {
    #[derive(Copy)] //~ ERROR `derive` may only be applied to `struct`s, `enum`s and `union`s
    fn f();
}

fn main() {}