diff options
Diffstat (limited to 'tests/ui/proc-macro/derive-helper-shadowed.rs')
-rw-r--r-- | tests/ui/proc-macro/derive-helper-shadowed.rs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/ui/proc-macro/derive-helper-shadowed.rs b/tests/ui/proc-macro/derive-helper-shadowed.rs new file mode 100644 index 000000000..e299454e0 --- /dev/null +++ b/tests/ui/proc-macro/derive-helper-shadowed.rs @@ -0,0 +1,16 @@ +// build-pass (FIXME(62277): could be check-pass?) +// aux-build:test-macros.rs +// aux-build:derive-helper-shadowed-2.rs + +#[macro_use] +extern crate test_macros; +#[macro_use(empty_helper)] +extern crate derive_helper_shadowed_2; + +macro_rules! empty_helper { () => () } + +#[derive(Empty)] +#[empty_helper] // OK +struct S; + +fn main() {} |