error[E0277]: the trait bound `Test: FromPyObject<'_>` is not satisfied --> tests/build/unsupported_from.rs:9:5 | 9 | test: Test, | ^^^^^^^^^^ the trait `PyClass` is not implemented for `Test`, which is required by `Test: FromPyObject<'_>` | = help: the following other types implement trait `FromPyObject<'py>`: <&'py CancelledError as FromPyObject<'py>> <&'py IncompleteReadError as FromPyObject<'py>> <&'py InvalidStateError as FromPyObject<'py>> <&'py LimitOverrunError as FromPyObject<'py>> <&'py PanicException as FromPyObject<'py>> <&'py PyAny as FromPyObject<'py>> <&'py PyArithmeticError as FromPyObject<'py>> <&'py PyAssertionError as FromPyObject<'py>> and $N others = note: required for `Test` to implement `FromPyObject<'_>` note: required by a bound in `extract_required` --> tests/build/unsupported_from.rs:7:10 | 7 | #[derive(FromPyObject)] | ^^^^^^^^^^^^ required by this bound in `extract_required` = note: this error originates in the derive macro `FromPyObject` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0277]: the trait bound `Test: FromPyObject<'_>` is not satisfied --> tests/build/unsupported_from.rs:9:5 | 9 | test: Test, | ^^^^^^^^^^ the trait `Clone` is not implemented for `Test`, which is required by `Test: FromPyObject<'_>` | = help: the following other types implement trait `FromPyObject<'py>`: <&'py CancelledError as FromPyObject<'py>> <&'py IncompleteReadError as FromPyObject<'py>> <&'py InvalidStateError as FromPyObject<'py>> <&'py LimitOverrunError as FromPyObject<'py>> <&'py PanicException as FromPyObject<'py>> <&'py PyAny as FromPyObject<'py>> <&'py PyArithmeticError as FromPyObject<'py>> <&'py PyAssertionError as FromPyObject<'py>> and $N others = note: required for `Test` to implement `FromPyObject<'_>` note: required by a bound in `extract_required` --> tests/build/unsupported_from.rs:7:10 | 7 | #[derive(FromPyObject)] | ^^^^^^^^^^^^ required by this bound in `extract_required` = note: this error originates in the derive macro `FromPyObject` (in Nightly builds, run with -Z macro-backtrace for more info) help: consider annotating `Test` with `#[derive(Clone)]` | 3 + #[derive(Clone)] 4 | struct Test { |