summary refs log tree commit diff
path: root/src/test/ui/proc-macro/attribute-order-restricted.rs
blob: 7b1eecd1558659f4665d2978d9839febc9074710 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// aux-build:attr_proc_macro.rs

extern crate attr_proc_macro;
use attr_proc_macro::*;

#[attr_proc_macro] // OK
#[derive(Clone)]
struct Before;

#[derive(Clone)]
#[attr_proc_macro] //~ ERROR macro attributes must be placed before `#[derive]`
struct After;

fn main() {}