rust/src/test/ui/thread-local-in-ctfe.stderr

50 lines
1.5 KiB
Plaintext
Raw Normal View History

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;
| ^^
error[E0712]: thread-local variable borrowed past end of function
--> $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
--> $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
--> $DIR/thread-local-in-ctfe.rs:16:17
2018-08-08 07:28:26 -05:00
|
LL | const E: &u32 = &A;
| ^^
error[E0712]: thread-local variable borrowed past end of function
--> $DIR/thread-local-in-ctfe.rs:16:17
|
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
--> $DIR/thread-local-in-ctfe.rs:21:5
2018-08-08 07:28:26 -05:00
|
LL | A
| ^
error: aborting due to 7 previous errors
2018-08-08 07:28:26 -05:00
For more information about this error, try `rustc --explain E0712`.