diff options
Diffstat (limited to 'tests/ui/proc-macro/helper-attr-blocked-by-import-ambig.rs')
-rw-r--r-- | tests/ui/proc-macro/helper-attr-blocked-by-import-ambig.rs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/ui/proc-macro/helper-attr-blocked-by-import-ambig.rs b/tests/ui/proc-macro/helper-attr-blocked-by-import-ambig.rs new file mode 100644 index 000000000..40c42d82f --- /dev/null +++ b/tests/ui/proc-macro/helper-attr-blocked-by-import-ambig.rs @@ -0,0 +1,13 @@ +// aux-build:test-macros.rs + +#[macro_use(Empty)] +extern crate test_macros; +use test_macros::empty_attr as empty_helper; + +#[empty_helper] //~ ERROR `empty_helper` is ambiguous + //~| WARN derive helper attribute is used before it is introduced + //~| WARN this was previously accepted +#[derive(Empty)] +struct S; + +fn main() {} |