]> git.lizzy.rs Git - rust.git/blob - src/test/ui/proc-macro/helper-attr-blocked-by-import.rs
Auto merge of #61491 - stjepang:impls-for-accesserror, r=dtolnay
[rust.git] / src / test / ui / proc-macro / helper-attr-blocked-by-import.rs
1 // build-pass (FIXME(62277): could be check-pass?)
2 // aux-build:test-macros.rs
3
4 #[macro_use(Empty)]
5 extern crate test_macros;
6
7 use self::one::*;
8 use self::two::*;
9
10 mod empty_helper {}
11
12 mod one {
13     use empty_helper;
14
15     #[derive(Empty)]
16     #[empty_helper]
17     struct One;
18 }
19
20 mod two {
21     use empty_helper;
22
23     #[derive(Empty)]
24     #[empty_helper]
25     struct Two;
26 }
27
28 fn main() {}