pyo3 0.14.3

Bindings to Python interpreter
Documentation
error[E0495]: cannot infer an appropriate lifetime for lifetime parameter `'p` due to conflicting requirements
 --> $DIR/static_ref.rs:4:1
  |
4 | #[pyfunction]
  | ^^^^^^^^^^^^^
  |
note: first, the lifetime cannot outlive the anonymous lifetime #1 defined on the body at 4:1...
 --> $DIR/static_ref.rs:4:1
  |
4 | #[pyfunction]
  | ^^^^^^^^^^^^^
note: ...so that the types are compatible
 --> $DIR/static_ref.rs:4:1
  |
4 | #[pyfunction]
  | ^^^^^^^^^^^^^
  = note: expected `pyo3::Python<'_>`
             found `pyo3::Python<'_>`
  = note: but, the lifetime must be valid for the static lifetime...
note: ...so that reference does not outlive borrowed content
 --> $DIR/static_ref.rs:4:1
  |
4 | #[pyfunction]
  | ^^^^^^^^^^^^^
  = note: this error originates in the attribute macro `pyfunction` (in Nightly builds, run with -Z macro-backtrace for more info)