Files
rust/tests/ui/allocator/no-thread-local.rs

11 lines
180 B
Rust

#![feature(thread_local)]
use std::alloc::System;
#[global_allocator]
#[thread_local]
static A: System = System;
//~^ ERROR: allocators cannot be `#[thread_local]`
fn main() {}