summaryrefslogtreecommitdiffstats
path: root/src/test/ui/hygiene/thread-local-not-in-prelude.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/hygiene/thread-local-not-in-prelude.rs')
-rw-r--r--src/test/ui/hygiene/thread-local-not-in-prelude.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/test/ui/hygiene/thread-local-not-in-prelude.rs b/src/test/ui/hygiene/thread-local-not-in-prelude.rs
new file mode 100644
index 000000000..e5ed09c60
--- /dev/null
+++ b/src/test/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() {
+}