2023-02-22 21:46:42 +00:00
|
|
|
error: lifetime may not live long enough
|
2024-02-11 23:55:56 +00:00
|
|
|
--> tests/ui/wrong_aspyref_lifetimes.rs:7:58
|
2023-02-22 21:46:42 +00:00
|
|
|
|
|
2024-02-11 23:55:56 +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>
|
2024-05-12 18:30:08 +00:00
|
|
|
| has type `Python<'1>`
|