blob: a3d4d23450ca6f1e44c346c667e1ad97bfef83cf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
// aux-build:test-macros.rs
#[macro_use]
extern crate test_macros;
#[identity_attr] // OK
#[derive(Clone)]
struct Before;
#[derive(Clone)]
#[identity_attr] //~ ERROR macro attributes must be placed before `#[derive]`
struct After;
fn main() {}
|