pyo3 0.12.1

Bindings to Python interpreter
Documentation
1
2
3
4
5
6
7
8
9
10
11
error[E0597]: `pool` does not live long enough
 --> $DIR/static_ref.rs:4:1
  |
4 | #[pyfunction]
  | ^^^^^^^^^^^^^
  | |
  | borrowed value does not live long enough
  | `pool` dropped here while still borrowed
  | cast requires that `pool` is borrowed for `'static`
  |
  = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)