pyo3/tests/ui/invalid_frozen_pyclass_borrow.stderr

28 lines
1.2 KiB
Plaintext
Raw Normal View History

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`
|
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`
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`
|
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`