2022-06-11 11:20:43 +00:00
|
|
|
error[E0271]: type mismatch resolving `<Foo as PyClass>::Frozen == False`
|
2022-11-04 04:29:23 +00:00
|
|
|
--> tests/ui/invalid_frozen_pyclass_borrow.rs:10:18
|
|
|
|
|
|
|
|
|
10 | let borrow = foo.as_ref(py).borrow_mut();
|
|
|
|
| ^^^^^^^^^^^^^^ ---------- required by a bound introduced by this call
|
|
|
|
| |
|
|
|
|
| expected struct `False`, found struct `True`
|
|
|
|
|
|
2022-06-11 11:20:43 +00:00
|
|
|
note: required by a bound in `PyCell::<T>::borrow_mut`
|
2022-11-04 04:29:23 +00:00
|
|
|
--> src/pycell.rs
|
|
|
|
|
|
|
|
|
| T: PyClass<Frozen = False>,
|
|
|
|
| ^^^^^^^^^^^^^^ required by this bound in `PyCell::<T>::borrow_mut`
|
2022-06-11 11:20:43 +00:00
|
|
|
|
|
|
|
error[E0271]: type mismatch resolving `<ImmutableChild as PyClass>::Frozen == False`
|
2022-11-04 04:29:23 +00:00
|
|
|
--> tests/ui/invalid_frozen_pyclass_borrow.rs:20:18
|
|
|
|
|
|
|
|
|
20 | let borrow = child.as_ref(py).borrow_mut();
|
|
|
|
| ^^^^^^^^^^^^^^^^ ---------- required by a bound introduced by this call
|
|
|
|
| |
|
|
|
|
| expected struct `False`, found struct `True`
|
|
|
|
|
|
2022-06-11 11:20:43 +00:00
|
|
|
note: required by a bound in `PyCell::<T>::borrow_mut`
|
2022-11-04 04:29:23 +00:00
|
|
|
--> src/pycell.rs
|
|
|
|
|
|
|
|
|
| T: PyClass<Frozen = False>,
|
|
|
|
| ^^^^^^^^^^^^^^ required by this bound in `PyCell::<T>::borrow_mut`
|