summaryrefslogtreecommitdiffstats
path: root/tests/ui/internal/internal-unstable-thread-local.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/internal/internal-unstable-thread-local.rs')
-rw-r--r--tests/ui/internal/internal-unstable-thread-local.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/ui/internal/internal-unstable-thread-local.rs b/tests/ui/internal/internal-unstable-thread-local.rs
new file mode 100644
index 000000000..b9194c6b3
--- /dev/null
+++ b/tests/ui/internal/internal-unstable-thread-local.rs
@@ -0,0 +1,11 @@
+// aux-build:internal_unstable.rs
+
+#![allow(dead_code)]
+
+extern crate internal_unstable;
+
+
+thread_local!(static FOO: () = ());
+thread_local!(static BAR: () = internal_unstable::unstable()); //~ ERROR use of unstable
+
+fn main() {}