Sign in
◑
Theme
rust
/
rust
/
2a61ba8577ed3c3e1cfeb433d06cf5464ff2fdf3
/
.
/
tests
/
ui
/
allocator
/
no-thread-local.rs
blob: 4548b00816fd2a44fc7f7c7784748a1a89f18030 [
file
]
#![
feature
(
thread_local
)]
use
std
::
alloc
::
System
;
#[
global_allocator
]
#[
thread_local
]
static
A
:
System
=
System
;
//~^ ERROR: allocators cannot be `#[thread_local]`
fn
main
()
{}