summaryrefslogtreecommitdiffstats
path: root/tests/ui/macros/auxiliary/dollar-crate-nested-encoding.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/macros/auxiliary/dollar-crate-nested-encoding.rs')
-rw-r--r--tests/ui/macros/auxiliary/dollar-crate-nested-encoding.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/ui/macros/auxiliary/dollar-crate-nested-encoding.rs b/tests/ui/macros/auxiliary/dollar-crate-nested-encoding.rs
new file mode 100644
index 000000000..bbe6a48c5
--- /dev/null
+++ b/tests/ui/macros/auxiliary/dollar-crate-nested-encoding.rs
@@ -0,0 +1,10 @@
+pub type S = u8;
+
+macro_rules! generate_exported { () => {
+ #[macro_export]
+ macro_rules! exported {
+ () => ($crate::S)
+ }
+}}
+
+generate_exported!();