diff options
Diffstat (limited to 'tests/ui/macros/issue-95533.rs')
-rw-r--r-- | tests/ui/macros/issue-95533.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/ui/macros/issue-95533.rs b/tests/ui/macros/issue-95533.rs new file mode 100644 index 000000000..905c14dc5 --- /dev/null +++ b/tests/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 () {} |