From 9614f285a70be5b310029a30b38b6fb9adfac80c Mon Sep 17 00:00:00 2001 From: Fayti1703 Date: Fri, 10 Apr 2026 00:33:44 +0200 Subject: [PATCH] Update ui test for deny global_allocator + thread_local --- tests/ui/allocator/no-thread-local.stderr | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 tests/ui/allocator/no-thread-local.stderr 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 +