diff --git a/tests/test_compile_error.rs b/tests/test_compile_error.rs index c33ab363..347b49c9 100644 --- a/tests/test_compile_error.rs +++ b/tests/test_compile_error.rs @@ -49,8 +49,7 @@ fn _test_compile_errors() { t.compile_fail("tests/ui/invalid_result_conversion.rs"); t.compile_fail("tests/ui/pyclass_send.rs"); - #[cfg(Py_LIMITED_API)] - t.compile_fail("tests/ui/abi3_nativetype_inheritance.rs"); + } #[rustversion::before(1.56)] @@ -74,6 +73,8 @@ fn _test_compile_errors() { t.compile_fail("tests/ui/invalid_pymethods.rs"); t.compile_fail("tests/ui/missing_clone.rs"); t.compile_fail("tests/ui/not_send.rs"); + #[cfg(Py_LIMITED_API)] + t.compile_fail("tests/ui/abi3_nativetype_inheritance.rs"); } #[rustversion::before(1.58)] diff --git a/tests/ui/abi3_nativetype_inheritance.stderr b/tests/ui/abi3_nativetype_inheritance.stderr index 4f9681d8..762250a4 100644 --- a/tests/ui/abi3_nativetype_inheritance.stderr +++ b/tests/ui/abi3_nativetype_inheritance.stderr @@ -1,21 +1,11 @@ error[E0277]: the trait bound `PyDict: PyClass` is not satisfied - --> tests/ui/abi3_nativetype_inheritance.rs:5:1 - | -5 | #[pyclass(extends=PyDict)] - | ^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `PyClass` is not implemented for `PyDict` - | - = note: required because of the requirements on the impl of `PyClassBaseType` for `PyDict` -note: required by a bound in `PyClassBaseType` - --> src/class/impl_.rs - | - | / pub trait PyClassBaseType: Sized { - | | type LayoutAsBase: PyCellLayout; - | | type BaseNativeType; - | | type ThreadChecker: PyClassThreadChecker; - | | type Initializer: PyObjectInit; - | | } - | |_^ required by this bound in `PyClassBaseType` - = note: this error originates in the attribute macro `pyclass` (in Nightly builds, run with -Z macro-backtrace for more info) + --> tests/ui/abi3_nativetype_inheritance.rs:5:1 + | +5 | #[pyclass(extends=PyDict)] + | ^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `PyClass` is not implemented for `PyDict` + | + = note: required because of the requirements on the impl of `PyClassBaseType` for `PyDict` + = note: this error originates in the attribute macro `pyclass` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0277]: the trait bound `PyDict: PyClass` is not satisfied --> tests/ui/abi3_nativetype_inheritance.rs:5:1