diff options
Diffstat (limited to 'src/test/ui/internal/internal-unstable-thread-local.rs')
-rw-r--r-- | src/test/ui/internal/internal-unstable-thread-local.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/test/ui/internal/internal-unstable-thread-local.rs b/src/test/ui/internal/internal-unstable-thread-local.rs new file mode 100644 index 000000000..b9194c6b3 --- /dev/null +++ b/src/test/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() {} |