diff options
Diffstat (limited to 'tests/ui/proc-macro/derive-helper-legacy-spurious.rs')
-rw-r--r-- | tests/ui/proc-macro/derive-helper-legacy-spurious.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/ui/proc-macro/derive-helper-legacy-spurious.rs b/tests/ui/proc-macro/derive-helper-legacy-spurious.rs new file mode 100644 index 000000000..4a7e48eed --- /dev/null +++ b/tests/ui/proc-macro/derive-helper-legacy-spurious.rs @@ -0,0 +1,12 @@ +// aux-build:test-macros.rs + +#![dummy] //~ ERROR cannot find attribute `dummy` in this scope + +#[macro_use] +extern crate test_macros; + +#[derive(Empty)] //~ ERROR cannot determine resolution for the attribute macro `derive` +#[empty_helper] //~ ERROR cannot find attribute `empty_helper` in this scope +struct Foo {} + +fn main() {} |