]> git.lizzy.rs Git - rust.git/blob - src/test/ui/proc-macro/derive-helper-shadowing.stderr
Add some more tests
[rust.git] / src / test / ui / proc-macro / derive-helper-shadowing.stderr
1 error: cannot use a derive helper attribute through an import
2   --> $DIR/derive-helper-shadowing.rs:40:15
3    |
4 LL |             #[renamed]
5    |               ^^^^^^^
6    |
7 note: the derive helper attribute imported here
8   --> $DIR/derive-helper-shadowing.rs:39:17
9    |
10 LL |             use empty_helper as renamed;
11    |                 ^^^^^^^^^^^^^^^^^^^^^^^
12
13 error: cannot find attribute `empty_helper` in this scope
14   --> $DIR/derive-helper-shadowing.rs:36:22
15    |
16 LL |             #[derive(GenHelperUse)]
17    |                      ^^^^^^^^^^^^
18
19 error: cannot find attribute `empty_helper` in this scope
20   --> $DIR/derive-helper-shadowing.rs:14:11
21    |
22 LL |         #[empty_helper]
23    |           ^^^^^^^^^^^^
24 ...
25 LL |             gen_helper_use!();
26    |             ------------------ in this macro invocation
27
28 error[E0659]: `empty_helper` is ambiguous (name vs any other name during import resolution)
29   --> $DIR/derive-helper-shadowing.rs:24:13
30    |
31 LL |         use empty_helper;
32    |             ^^^^^^^^^^^^ ambiguous name
33    |
34 note: `empty_helper` could refer to the derive helper attribute defined here
35   --> $DIR/derive-helper-shadowing.rs:20:10
36    |
37 LL | #[derive(Empty)]
38    |          ^^^^^
39 note: `empty_helper` could also refer to the attribute macro imported here
40   --> $DIR/derive-helper-shadowing.rs:10:5
41    |
42 LL | use test_macros::empty_attr as empty_helper;
43    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
44    = help: use `crate::empty_helper` to refer to this attribute macro unambiguously
45
46 error[E0659]: `empty_helper` is ambiguous (derive helper attribute vs any other name)
47   --> $DIR/derive-helper-shadowing.rs:19:3
48    |
49 LL | #[empty_helper]
50    |   ^^^^^^^^^^^^ ambiguous name
51    |
52 note: `empty_helper` could refer to the derive helper attribute defined here
53   --> $DIR/derive-helper-shadowing.rs:20:10
54    |
55 LL | #[derive(Empty)]
56    |          ^^^^^
57 note: `empty_helper` could also refer to the attribute macro imported here
58   --> $DIR/derive-helper-shadowing.rs:10:5
59    |
60 LL | use test_macros::empty_attr as empty_helper;
61    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
62    = help: use `crate::empty_helper` to refer to this attribute macro unambiguously
63
64 error[E0659]: `empty_helper` is ambiguous (derive helper attribute vs any other name)
65   --> $DIR/derive-helper-shadowing.rs:22:7
66    |
67 LL |     #[empty_helper]
68    |       ^^^^^^^^^^^^ ambiguous name
69    |
70 note: `empty_helper` could refer to the derive helper attribute defined here
71   --> $DIR/derive-helper-shadowing.rs:20:10
72    |
73 LL | #[derive(Empty)]
74    |          ^^^^^
75 note: `empty_helper` could also refer to the attribute macro imported here
76   --> $DIR/derive-helper-shadowing.rs:10:5
77    |
78 LL | use test_macros::empty_attr as empty_helper;
79    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
80    = help: use `crate::empty_helper` to refer to this attribute macro unambiguously
81
82 error[E0659]: `empty_helper` is ambiguous (derive helper attribute vs any other name)
83   --> $DIR/derive-helper-shadowing.rs:26:11
84    |
85 LL |         #[empty_helper]
86    |           ^^^^^^^^^^^^ ambiguous name
87    |
88 note: `empty_helper` could refer to the derive helper attribute defined here
89   --> $DIR/derive-helper-shadowing.rs:20:10
90    |
91 LL | #[derive(Empty)]
92    |          ^^^^^
93 note: `empty_helper` could also refer to the attribute macro imported here
94   --> $DIR/derive-helper-shadowing.rs:10:5
95    |
96 LL | use test_macros::empty_attr as empty_helper;
97    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
98    = help: use `crate::empty_helper` to refer to this attribute macro unambiguously
99
100 error: aborting due to 7 previous errors
101
102 For more information about this error, try `rustc --explain E0659`.