]> git.lizzy.rs Git - rust.git/blob - src/test/ui/proc-macro/attribute-order-restricted.rs
Auto merge of #74160 - CAD97:weak-as-unsized-ptr, r=RalfJung
[rust.git] / src / test / ui / proc-macro / attribute-order-restricted.rs
1 // aux-build:test-macros.rs
2
3 #[macro_use]
4 extern crate test_macros;
5
6 #[identity_attr] // OK
7 #[derive(Clone)]
8 struct Before;
9
10 #[derive(Clone)]
11 #[identity_attr] //~ ERROR macro attributes must be placed before `#[derive]`
12 struct After;
13
14 fn main() {}