pyo3/tests/ui/wrong_aspyref_lifetimes.stderr

11 lines
450 B
Plaintext
Raw Normal View History

error[E0505]: cannot move out of `gil` because it is borrowed
--> tests/ui/wrong_aspyref_lifetimes.rs:7:10
|
6 | let dict: &PyDict = dict.as_ref(gil.python());
2021-12-03 23:29:02 +00:00
| ------------ borrow of `gil` occurs here
7 | drop(gil);
| ^^^ move out of `gil` occurs here
2020-11-19 12:05:08 +00:00
8 |
9 | let _py: Python = dict.py(); // Obtain a Python<'p> without GIL.
2021-12-03 23:29:02 +00:00
| --------- borrow later used here