From 48aba84f926ff781ee72b03771439d539fbab2a7 Mon Sep 17 00:00:00 2001 From: mejrs Date: Tue, 12 Apr 2022 17:43:27 +0200 Subject: [PATCH] Fix UI test --- tests/test_compile_error.rs | 2 +- tests/ui/missing_clone.stderr | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_compile_error.rs b/tests/test_compile_error.rs index bafaf065751..1fd0f9c2c99 100644 --- a/tests/test_compile_error.rs +++ b/tests/test_compile_error.rs @@ -30,7 +30,6 @@ fn _test_compile_errors() { #[rustversion::since(1.48)] fn tests_rust_1_48(t: &trybuild::TestCases) { - t.compile_fail("tests/ui/missing_clone.rs"); t.compile_fail("tests/ui/wrong_aspyref_lifetimes.rs"); } #[rustversion::before(1.48)] @@ -68,6 +67,7 @@ fn _test_compile_errors() { t.compile_fail("tests/ui/invalid_pymethod_receiver.rs"); t.compile_fail("tests/ui/invalid_argument_attributes.rs"); t.compile_fail("tests/ui/invalid_frompy_derive.rs"); + t.compile_fail("tests/ui/missing_clone.rs"); } #[rustversion::before(1.60)] diff --git a/tests/ui/missing_clone.stderr b/tests/ui/missing_clone.stderr index ee82c71d94c..59c1f324ff2 100644 --- a/tests/ui/missing_clone.stderr +++ b/tests/ui/missing_clone.stderr @@ -6,7 +6,7 @@ error[E0277]: the trait bound `TestClass: Clone` is not satisfied | = note: required because of the requirements on the impl of `pyo3::FromPyObject<'_>` for `TestClass` note: required by a bound in `pyo3::Py::::extract` - --> src/instance.rs:518:12 + --> src/instance.rs | -518 | D: FromPyObject<'p>, + | D: FromPyObject<'p>, | ^^^^^^^^^^^^^^^^ required by this bound in `pyo3::Py::::extract`