pyo3/tests/ui/static_ref.stderr

11 lines
338 B
Plaintext
Raw Normal View History

error: lifetime may not live long enough
--> tests/ui/static_ref.rs:4:1
|
2020-05-31 15:15:33 +00:00
4 | #[pyfunction]
| ^^^^^^^^^^^^^
| |
| lifetime `'py` defined here
| cast requires that `'py` must outlive `'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)