2018-08-08 07:28:26 -05:00
|
|
|
error[E0625]: thread-local statics cannot be accessed at compile-time
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/thread-local-in-ctfe.rs:6:17
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | static B: u32 = A;
|
|
|
|
| ^
|
|
|
|
|
|
|
|
error[E0625]: thread-local statics cannot be accessed at compile-time
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/thread-local-in-ctfe.rs:9:18
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | static C: &u32 = &A;
|
|
|
|
| ^^
|
|
|
|
|
2019-09-06 08:47:50 -05:00
|
|
|
error[E0712]: thread-local variable borrowed past end of function
|
2019-04-22 02:40:08 -05:00
|
|
|
--> $DIR/thread-local-in-ctfe.rs:9:18
|
|
|
|
|
|
|
|
|
LL | static C: &u32 = &A;
|
|
|
|
| ^^- end of enclosing function is here
|
|
|
|
| |
|
|
|
|
| thread-local variables cannot be borrowed beyond the end of the function
|
|
|
|
|
2018-08-08 07:28:26 -05:00
|
|
|
error[E0625]: thread-local statics cannot be accessed at compile-time
|
2019-09-06 08:47:50 -05:00
|
|
|
--> $DIR/thread-local-in-ctfe.rs:13:16
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | const D: u32 = A;
|
|
|
|
| ^
|
|
|
|
|
|
|
|
error[E0625]: thread-local statics cannot be accessed at compile-time
|
2019-09-06 08:47:50 -05:00
|
|
|
--> $DIR/thread-local-in-ctfe.rs:16:17
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | const E: &u32 = &A;
|
|
|
|
| ^^
|
|
|
|
|
2019-09-06 08:47:50 -05:00
|
|
|
error[E0712]: thread-local variable borrowed past end of function
|
|
|
|
--> $DIR/thread-local-in-ctfe.rs:16:17
|
2019-04-22 02:40:08 -05:00
|
|
|
|
|
|
|
|
LL | const E: &u32 = &A;
|
|
|
|
| ^^- end of enclosing function is here
|
|
|
|
| |
|
|
|
|
| thread-local variables cannot be borrowed beyond the end of the function
|
|
|
|
|
2018-08-08 07:28:26 -05:00
|
|
|
error[E0625]: thread-local statics cannot be accessed at compile-time
|
2019-09-06 08:47:50 -05:00
|
|
|
--> $DIR/thread-local-in-ctfe.rs:21:5
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | A
|
|
|
|
| ^
|
|
|
|
|
2019-09-06 08:47:50 -05:00
|
|
|
error: aborting due to 7 previous errors
|
2018-08-08 07:28:26 -05:00
|
|
|
|
2019-04-22 02:40:08 -05:00
|
|
|
For more information about this error, try `rustc --explain E0712`.
|