error[E0597]: `pool` does not live long enough --> $DIR/static_ref.rs:9:1 | 9 | #[pymethods] | ^^^^^^^^^^^^ | | | 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)