24 lines
1,022 B
Plaintext
24 lines
1,022 B
Plaintext
error[E0271]: type mismatch resolving `<Foo as PyClass>::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::<T>::borrow_mut`
|
|
--> src/pycell.rs
|
|
|
|
|
| T: PyClass<Frozen = False>,
|
|
| ^^^^^^^^^^^^^^ required by this bound in `PyCell::<T>::borrow_mut`
|
|
|
|
error[E0271]: type mismatch resolving `<ImmutableChild as PyClass>::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::<T>::borrow_mut`
|
|
--> src/pycell.rs
|
|
|
|
|
| T: PyClass<Frozen = False>,
|
|
| ^^^^^^^^^^^^^^ required by this bound in `PyCell::<T>::borrow_mut`
|