summaryrefslogtreecommitdiffstats
path: root/src/test/ui/macros/issue-95533.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/macros/issue-95533.rs')
-rw-r--r--src/test/ui/macros/issue-95533.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/test/ui/macros/issue-95533.rs b/src/test/ui/macros/issue-95533.rs
new file mode 100644
index 000000000..905c14dc5
--- /dev/null
+++ b/src/test/ui/macros/issue-95533.rs
@@ -0,0 +1,8 @@
+// check-pass
+
+#![no_implicit_prelude]
+// the macro should not rely on the prelude being imported
+::std::thread_local! { static P: () = (); }
+::std::thread_local! { static Q: () = const { () }; }
+
+fn main () {}