2018-08-08 14:50:16 +02:00
|
|
|
error[E0712]: thread-local variable borrowed past end of function
|
2019-04-22 08:40:08 +01:00
|
|
|
--> $DIR/borrowck-thread-local-static-borrow-outlives-fn.rs:8:20
|
2018-08-08 14:50:16 +02:00
|
|
|
|
|
2019-03-17 10:52:07 +01:00
|
|
|
LL | assert_static(&FOO);
|
2018-08-08 14:50:16 +02:00
|
|
|
| ^^^^ thread-local variables cannot be borrowed beyond the end of the function
|
|
|
|
LL | }
|
|
|
|
| - end of enclosing function is here
|
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0712`.
|