1 error: cannot use a derive helper attribute through an import
2 --> $DIR/derive-helper-shadowing.rs:40:15
7 note: the derive helper attribute imported here
8 --> $DIR/derive-helper-shadowing.rs:39:17
10 LL | use empty_helper as renamed;
11 | ^^^^^^^^^^^^^^^^^^^^^^^
13 error: cannot find attribute `empty_helper` in this scope
14 --> $DIR/derive-helper-shadowing.rs:36:22
16 LL | #[derive(GenHelperUse)]
19 error: cannot find attribute `empty_helper` in this scope
20 --> $DIR/derive-helper-shadowing.rs:14:11
25 LL | gen_helper_use!();
26 | ------------------ in this macro invocation
28 error[E0659]: `empty_helper` is ambiguous (name vs any other name during import resolution)
29 --> $DIR/derive-helper-shadowing.rs:24:13
31 LL | use empty_helper;
32 | ^^^^^^^^^^^^ ambiguous name
34 note: `empty_helper` could refer to the derive helper attribute defined here
35 --> $DIR/derive-helper-shadowing.rs:20:10
39 note: `empty_helper` could also refer to the attribute macro imported here
40 --> $DIR/derive-helper-shadowing.rs:10:5
42 LL | use test_macros::empty_attr as empty_helper;
43 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
44 = help: use `crate::empty_helper` to refer to this attribute macro unambiguously
46 error[E0659]: `empty_helper` is ambiguous (derive helper attribute vs any other name)
47 --> $DIR/derive-helper-shadowing.rs:19:3
50 | ^^^^^^^^^^^^ ambiguous name
52 note: `empty_helper` could refer to the derive helper attribute defined here
53 --> $DIR/derive-helper-shadowing.rs:20:10
57 note: `empty_helper` could also refer to the attribute macro imported here
58 --> $DIR/derive-helper-shadowing.rs:10:5
60 LL | use test_macros::empty_attr as empty_helper;
61 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
62 = help: use `crate::empty_helper` to refer to this attribute macro unambiguously
64 error[E0659]: `empty_helper` is ambiguous (derive helper attribute vs any other name)
65 --> $DIR/derive-helper-shadowing.rs:22:7
68 | ^^^^^^^^^^^^ ambiguous name
70 note: `empty_helper` could refer to the derive helper attribute defined here
71 --> $DIR/derive-helper-shadowing.rs:20:10
75 note: `empty_helper` could also refer to the attribute macro imported here
76 --> $DIR/derive-helper-shadowing.rs:10:5
78 LL | use test_macros::empty_attr as empty_helper;
79 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
80 = help: use `crate::empty_helper` to refer to this attribute macro unambiguously
82 error[E0659]: `empty_helper` is ambiguous (derive helper attribute vs any other name)
83 --> $DIR/derive-helper-shadowing.rs:26:11
86 | ^^^^^^^^^^^^ ambiguous name
88 note: `empty_helper` could refer to the derive helper attribute defined here
89 --> $DIR/derive-helper-shadowing.rs:20:10
93 note: `empty_helper` could also refer to the attribute macro imported here
94 --> $DIR/derive-helper-shadowing.rs:10:5
96 LL | use test_macros::empty_attr as empty_helper;
97 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
98 = help: use `crate::empty_helper` to refer to this attribute macro unambiguously
100 error: aborting due to 7 previous errors
102 For more information about this error, try `rustc --explain E0659`.