]> git.lizzy.rs Git - rust.git/blob - tests/ui/issues/issue-17954.stderr
Merge commit '7f27e2e74ef957baa382dc05cf08df6368165c74' into clippyup
[rust.git] / tests / ui / issues / issue-17954.stderr
1 error[E0712]: thread-local variable borrowed past end of function
2   --> $DIR/issue-17954.rs:7:13
3    |
4 LL |     let a = &FOO;
5    |             ^^^^ thread-local variables cannot be borrowed beyond the end of the function
6 ...
7 LL | }
8    | - end of enclosing function is here
9
10 error: aborting due to previous error
11
12 For more information about this error, try `rustc --explain E0712`.