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

58 lines
2.1 KiB
Plaintext
Raw Normal View History

2018-08-08 14:28:26 +02:00
error[E0625]: thread-local statics cannot be accessed at compile-time
2018-12-25 08:56:47 -07:00
--> $DIR/thread-local-in-ctfe.rs:6:17
2018-08-08 14:28:26 +02:00
|
LL | static B: u32 = A;
| ^
error[E0625]: thread-local statics cannot be accessed at compile-time
2018-12-25 08:56:47 -07:00
--> $DIR/thread-local-in-ctfe.rs:9:18
2018-08-08 14:28:26 +02:00
|
LL | static C: &u32 = &A;
| ^^
warning[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
|
= warning: this error has been downgraded to a warning for backwards compatibility with previous releases
= warning: this represents potential undefined behavior in your code and this warning will become a hard error in the future
2019-05-13 17:09:30 -07:00
= note: for more information, try `rustc --explain E0729`
2018-08-08 14:28:26 +02:00
error[E0625]: thread-local statics cannot be accessed at compile-time
--> $DIR/thread-local-in-ctfe.rs:15:16
2018-08-08 14:28:26 +02:00
|
LL | const D: u32 = A;
| ^
error[E0625]: thread-local statics cannot be accessed at compile-time
--> $DIR/thread-local-in-ctfe.rs:18:17
2018-08-08 14:28:26 +02:00
|
LL | const E: &u32 = &A;
| ^^
warning[E0712]: thread-local variable borrowed past end of function
--> $DIR/thread-local-in-ctfe.rs:18:17
|
LL | const E: &u32 = &A;
| ^^- end of enclosing function is here
| |
| thread-local variables cannot be borrowed beyond the end of the function
|
= warning: this error has been downgraded to a warning for backwards compatibility with previous releases
= warning: this represents potential undefined behavior in your code and this warning will become a hard error in the future
2019-05-13 17:09:30 -07:00
= note: for more information, try `rustc --explain E0729`
2018-08-08 14:28:26 +02:00
error[E0625]: thread-local statics cannot be accessed at compile-time
--> $DIR/thread-local-in-ctfe.rs:25:5
2018-08-08 14:28:26 +02:00
|
LL | A
| ^
error: aborting due to 5 previous errors
For more information about this error, try `rustc --explain E0712`.