]> git.proxmox.com Git - rustc.git/blame - src/test/ui/proc-macro/derive-helper-legacy-limits.rs
Merge tag 'debian/1.52.1+dfsg1-1_exp2' into proxmox/buster
[rustc.git] / src / test / ui / proc-macro / derive-helper-legacy-limits.rs
CommitLineData
6a06907d
XL
1// Support for legacy derive helpers is limited and heuristic-based
2// (that's exactly the reason why they are deprecated).
3
4// edition:2018
5// aux-build:test-macros.rs
6
7#[macro_use]
8extern crate test_macros;
9
10use derive as my_derive;
11
12#[my_derive(Empty)]
13#[empty_helper] // OK
14struct S1;
15
16// Legacy helper detection doesn't see through `derive` renaming.
17#[empty_helper] //~ ERROR cannot find attribute `empty_helper` in this scope
18#[my_derive(Empty)]
19struct S2;
20
21fn main() {}