error[E0712]: thread-local variable borrowed past end of function
--> $DIR/borrowck-thread-local-static-borrow-outlives-fn.rs:11:20
|
-LL | assert_static(&FOO); //[ast]~ ERROR [E0597]
+LL | assert_static(&FOO);
| ^^^^ thread-local variables cannot be borrowed beyond the end of the function
-LL | //[mir]~^ ERROR [E0712]
+LL |
LL | }
| - end of enclosing function is here