Open anko opened 4 months ago
std::thread_local accepts this:
std::thread_local
use std::cell::Cell; thread_local! { pub static FOO: Cell<u32> = const { Cell::new(0) }; }
loom::thread_local does not:
loom::thread_local
error: no rules expected the token `const` --> src/test.rs:3:33 | 3 | pub static FOO: Cell<u32> = const { Cell::new(0) }; | ^^^^^ no rules expected this token in macro call
std::thread_local
accepts this:loom::thread_local
does not: