error[E0271]: type mismatch resolving `::Frozen == False` --> 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` | note: required by a bound in `PyCell::::borrow_mut` --> src/pycell.rs | | T: PyClass, | ^^^^^^^^^^^^^^ required by this bound in `PyCell::::borrow_mut` error[E0271]: type mismatch resolving `::Frozen == False` --> 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` | note: required by a bound in `PyCell::::borrow_mut` --> src/pycell.rs | | T: PyClass, | ^^^^^^^^^^^^^^ required by this bound in `PyCell::::borrow_mut`