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 `False`, found `True` | note: required by a bound in `pyo3::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 `False`, found `True` | note: required by a bound in `pyo3::PyCell::::borrow_mut` --> src/pycell.rs | | T: PyClass, | ^^^^^^^^^^^^^^ required by this bound in `PyCell::::borrow_mut` error[E0271]: type mismatch resolving `::Frozen == True` --> tests/ui/invalid_frozen_pyclass_borrow.rs:24:11 | 24 | class.get(); | ^^^ expected `True`, found `False` | note: required by a bound in `pyo3::Py::::get` --> src/instance.rs | | T: PyClass + Sync, | ^^^^^^^^^^^^^ required by this bound in `Py::::get` error[E0271]: type mismatch resolving `::Frozen == True` --> tests/ui/invalid_frozen_pyclass_borrow.rs:28:11 | 28 | class.get(); | ^^^ expected `True`, found `False` | note: required by a bound in `pyo3::PyCell::::get` --> src/pycell.rs | | T: PyClass + Sync, | ^^^^^^^^^^^^^ required by this bound in `PyCell::::get`