Skip to content

Commit 48aba84

Browse files
committed
Fix UI test
1 parent 3725b31 commit 48aba84

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tests/test_compile_error.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ fn _test_compile_errors() {
3030

3131
#[rustversion::since(1.48)]
3232
fn tests_rust_1_48(t: &trybuild::TestCases) {
33-
t.compile_fail("tests/ui/missing_clone.rs");
3433
t.compile_fail("tests/ui/wrong_aspyref_lifetimes.rs");
3534
}
3635
#[rustversion::before(1.48)]
@@ -68,6 +67,7 @@ fn _test_compile_errors() {
6867
t.compile_fail("tests/ui/invalid_pymethod_receiver.rs");
6968
t.compile_fail("tests/ui/invalid_argument_attributes.rs");
7069
t.compile_fail("tests/ui/invalid_frompy_derive.rs");
70+
t.compile_fail("tests/ui/missing_clone.rs");
7171
}
7272

7373
#[rustversion::before(1.60)]

tests/ui/missing_clone.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ error[E0277]: the trait bound `TestClass: Clone` is not satisfied
66
|
77
= note: required because of the requirements on the impl of `pyo3::FromPyObject<'_>` for `TestClass`
88
note: required by a bound in `pyo3::Py::<T>::extract`
9-
--> src/instance.rs:518:12
9+
--> src/instance.rs
1010
|
11-
518 | D: FromPyObject<'p>,
11+
| D: FromPyObject<'p>,
1212
| ^^^^^^^^^^^^^^^^ required by this bound in `pyo3::Py::<T>::extract`

0 commit comments

Comments
 (0)