1 Static and const variables can refer to other const variables. But a const
2 variable cannot refer to a thread-local static variable.
4 Erroneous code example:
7 #![feature(thread_local)]
12 const Y: usize = 2 * X;
15 In this example, `Y` cannot refer to `X`. To fix this, the value can be
16 extracted as a const and then used:
19 #![feature(thread_local)]
26 const Y: usize = 2 * C;