about summary refs log tree commit diff
path: root/tests/ui/hygiene/thread-local-not-in-prelude.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/hygiene/thread-local-not-in-prelude.rs')
-rw-r--r--tests/ui/hygiene/thread-local-not-in-prelude.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/ui/hygiene/thread-local-not-in-prelude.rs b/tests/ui/hygiene/thread-local-not-in-prelude.rs
new file mode 100644
index 00000000000..e5ed09c600b
--- /dev/null
+++ b/tests/ui/hygiene/thread-local-not-in-prelude.rs
@@ -0,0 +1,9 @@
+// run-pass
+#![no_std]
+
+extern crate std;
+
+std::thread_local!(static A: usize = 30);
+
+fn main() {
+}