pyo3/tests/ui/static_ref.stderr

12 lines
427 B
Plaintext
Raw Normal View History

error[E0597]: `gil` does not live long enough
--> tests/ui/static_ref.rs:4:1
|
2020-05-31 15:15:33 +00:00
4 | #[pyfunction]
| ^^^^^^^^^^^^-
| | |
| | `gil` dropped here while still borrowed
| borrowed value does not live long enough
| cast requires that `gil` is borrowed for `'static`
|
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)