2022-02-10 08:15:13 +00:00
|
|
|
error[E0597]: `gil` does not live long enough
|
2021-10-12 00:52:24 +00:00
|
|
|
--> tests/ui/static_ref.rs:4:1
|
2020-04-12 07:31:35 +00:00
|
|
|
|
|
2020-05-31 15:15:33 +00:00
|
|
|
4 | #[pyfunction]
|
2022-02-10 08:15:13 +00:00
|
|
|
| ^^^^^^^^^^^^-
|
|
|
|
| | |
|
|
|
|
| | `gil` dropped here while still borrowed
|
|
|
|
| borrowed value does not live long enough
|
|
|
|
| cast requires that `gil` is borrowed for `'static`
|
2020-04-12 07:31:35 +00:00
|
|
|
|
|
2021-07-30 22:30:56 +00:00
|
|
|
= note: this error originates in the attribute macro `pyfunction` (in Nightly builds, run with -Z macro-backtrace for more info)
|