error[E0271]: type mismatch resolving `::Frozen == False` --> tests/ui/invalid_frozen_pyclass_borrow.rs:10:33 | 10 | let borrow = foo.as_ref(py).borrow_mut(); | ^^^^^^^^^^ 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:35 | 20 | let borrow = child.as_ref(py).borrow_mut(); | ^^^^^^^^^^ 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`