]> git.lizzy.rs Git - rust.git/blob - src/test/ui/proc-macro/derive-helper-shadowing.stderr
Rollup merge of #62644 - arnottcr:std_io-doc, r=steveklabnik
[rust.git] / src / test / ui / proc-macro / derive-helper-shadowing.stderr
1 error: cannot find attribute macro `empty_helper` in this scope
2   --> $DIR/derive-helper-shadowing.rs:22:15
3    |
4 LL |             #[empty_helper]
5    |               ^^^^^^^^^^^^
6
7 error[E0659]: `empty_helper` is ambiguous (derive helper attribute vs any other name)
8   --> $DIR/derive-helper-shadowing.rs:8:3
9    |
10 LL | #[empty_helper]
11    |   ^^^^^^^^^^^^ ambiguous name
12    |
13 note: `empty_helper` could refer to the derive helper attribute defined here
14   --> $DIR/derive-helper-shadowing.rs:9:10
15    |
16 LL | #[derive(Empty)]
17    |          ^^^^^
18 note: `empty_helper` could also refer to the attribute macro imported here
19   --> $DIR/derive-helper-shadowing.rs:6:5
20    |
21 LL | use test_macros::empty_attr as empty_helper;
22    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
23    = help: use `crate::empty_helper` to refer to this attribute macro unambiguously
24
25 error: aborting due to 2 previous errors
26
27 For more information about this error, try `rustc --explain E0659`.