2020-03-07 09:59:49 +00:00
|
|
|
error[E0597]: `pool` does not live long enough
|
2020-05-31 15:15:33 +00:00
|
|
|
--> $DIR/static_ref.rs:4:1
|
2020-04-12 07:31:35 +00:00
|
|
|
|
|
2020-05-31 15:15:33 +00:00
|
|
|
4 | #[pyfunction]
|
|
|
|
| ^^^^^^^^^^^^^
|
2020-03-07 09:59:49 +00:00
|
|
|
| |
|
2020-04-12 07:31:35 +00:00
|
|
|
| borrowed value does not live long enough
|
2020-03-07 09:59:49 +00:00
|
|
|
| `pool` dropped here while still borrowed
|
|
|
|
| cast requires that `pool` is borrowed for `'static`
|
2020-04-12 07:31:35 +00:00
|
|
|
|
|
2020-03-07 09:59:49 +00:00
|
|
|
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|