2020-04-20 17:44:31 +00:00
|
|
|
error[E0505]: cannot move out of `gil` because it is borrowed
|
2022-08-15 01:34:47 +00:00
|
|
|
--> tests/ui/wrong_aspyref_lifetimes.rs:8:10
|
|
|
|
|
|
|
|
|
7 | let dict: &PyDict = dict.as_ref(gil.python());
|
|
|
|
| ------------ borrow of `gil` occurs here
|
|
|
|
8 | drop(gil);
|
|
|
|
| ^^^ move out of `gil` occurs here
|
|
|
|
9 |
|
|
|
|
10 | let _py: Python = dict.py(); // Obtain a Python<'p> without GIL.
|
|
|
|
| --------- borrow later used here
|