rust/tests/ui/issues/issue-17954.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
381 B
Plaintext
Raw Normal View History

error[E0712]: thread-local variable borrowed past end of function
--> $DIR/issue-17954.rs:7:13
2018-07-15 21:11:54 +00:00
|
LL | let a = &FOO;
| ^^^^ thread-local variables cannot be borrowed beyond the end of the function
2018-07-15 21:11:54 +00:00
...
LL | }
| - end of enclosing function is here
2018-07-15 21:11:54 +00:00
error: aborting due to previous error
For more information about this error, try `rustc --explain E0712`.