1 error[E0625]: thread-local statics cannot be accessed at compile-time
2 --> $DIR/thread-local-in-ctfe.rs:6:17
4 LL | static B: u32 = A;
7 error[E0625]: thread-local statics cannot be accessed at compile-time
8 --> $DIR/thread-local-in-ctfe.rs:9:18
10 LL | static C: &u32 = &A;
13 warning[E0712]: thread-local variable borrowed past end of function
14 --> $DIR/thread-local-in-ctfe.rs:9:18
16 LL | static C: &u32 = &A;
17 | ^^- end of enclosing function is here
19 | thread-local variables cannot be borrowed beyond the end of the function
21 = warning: this error has been downgraded to a warning for backwards compatibility with previous releases
22 = warning: this represents potential undefined behavior in your code and this warning will become a hard error in the future
23 = note: for more information, try `rustc --explain E0729`
25 error[E0625]: thread-local statics cannot be accessed at compile-time
26 --> $DIR/thread-local-in-ctfe.rs:15:16
28 LL | const D: u32 = A;
31 error[E0625]: thread-local statics cannot be accessed at compile-time
32 --> $DIR/thread-local-in-ctfe.rs:18:17
34 LL | const E: &u32 = &A;
37 warning[E0712]: thread-local variable borrowed past end of function
38 --> $DIR/thread-local-in-ctfe.rs:18:17
40 LL | const E: &u32 = &A;
41 | ^^- end of enclosing function is here
43 | thread-local variables cannot be borrowed beyond the end of the function
45 = warning: this error has been downgraded to a warning for backwards compatibility with previous releases
46 = warning: this represents potential undefined behavior in your code and this warning will become a hard error in the future
47 = note: for more information, try `rustc --explain E0729`
49 error[E0625]: thread-local statics cannot be accessed at compile-time
50 --> $DIR/thread-local-in-ctfe.rs:25:5
55 error: aborting due to 5 previous errors
57 For more information about this error, try `rustc --explain E0712`.