diff options
Diffstat (limited to 'tests/ui/thread-local/thread-local-with-attributes-30756.rs')
| -rw-r--r-- | tests/ui/thread-local/thread-local-with-attributes-30756.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/ui/thread-local/thread-local-with-attributes-30756.rs b/tests/ui/thread-local/thread-local-with-attributes-30756.rs new file mode 100644 index 00000000000..fcf7bb813c8 --- /dev/null +++ b/tests/ui/thread-local/thread-local-with-attributes-30756.rs @@ -0,0 +1,8 @@ +// https://github.com/rust-lang/rust/issues/30756 +//@ run-pass +#![forbid(unsafe_code)] + +thread_local!(static FOO: u8 = 1); + +fn main() { +} |
