diff --git a/tests/ui/allocator/no-thread-local.stderr b/tests/ui/allocator/no-thread-local.stderr new file mode 100644 index 000000000000..27aa8fd4a7fa --- /dev/null +++ b/tests/ui/allocator/no-thread-local.stderr @@ -0,0 +1,10 @@ +error: allocators cannot be `#[thread_local]` + --> $DIR/no-thread-local.rs:6:1 + | +LL | / #[thread_local] +LL | | +LL | | static A: System = System; + | |__________________________^ + +error: aborting due to 1 previous error +