diff options
Diffstat (limited to 'tests/ui/proc-macro/export-macro.rs')
-rw-r--r-- | tests/ui/proc-macro/export-macro.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/ui/proc-macro/export-macro.rs b/tests/ui/proc-macro/export-macro.rs new file mode 100644 index 000000000..ad69fe5ee --- /dev/null +++ b/tests/ui/proc-macro/export-macro.rs @@ -0,0 +1,11 @@ +// error-pattern: cannot export macro_rules! macros from a `proc-macro` crate + +// force-host +// no-prefer-dynamic + +#![crate_type = "proc-macro"] + +#[macro_export] +macro_rules! foo { + ($e:expr) => ($e) +} |