mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-01 07:13:24 +03:00
11 lines
180 B
Rust
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() {}
|