diff options
Diffstat (limited to 'tests/ui/proc-macro/macro-use-attr.rs')
-rw-r--r-- | tests/ui/proc-macro/macro-use-attr.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/ui/proc-macro/macro-use-attr.rs b/tests/ui/proc-macro/macro-use-attr.rs new file mode 100644 index 000000000..b101c09ed --- /dev/null +++ b/tests/ui/proc-macro/macro-use-attr.rs @@ -0,0 +1,12 @@ +// build-pass (FIXME(62277): could be check-pass?) +// aux-build:test-macros.rs + +#[macro_use] +extern crate test_macros; + +#[identity_attr] +struct Foo; + +fn main() { + let _ = Foo; +} |