pyo3/tests/ui/wrong_aspyref_lifetimes.stderr

9 lines
554 B
Plaintext
Raw Permalink Normal View History

2023-02-22 21:46:42 +00:00
error: lifetime may not live long enough
--> tests/ui/wrong_aspyref_lifetimes.rs:7:58
2023-02-22 21:46:42 +00:00
|
7 | let dict: &Bound<'_, PyDict> = Python::with_gil(|py| dict.bind(py));
| --- ^^^^^^^^^^^^^ returning this value requires that `'1` must outlive `'2`
| | |
| | return type of closure is &'2 pyo3::Bound<'_, PyDict>
| has type `Python<'1>`