Skip to content

Commit

Permalink
Fix UI test
Browse files Browse the repository at this point in the history
  • Loading branch information
mejrs committed Apr 12, 2022
1 parent 3725b31 commit 48aba84
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/test_compile_error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down Expand Up @@ -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)]
Expand Down
4 changes: 2 additions & 2 deletions tests/ui/missing_clone.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -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::<T>::extract`
--> src/instance.rs:518:12
--> src/instance.rs
|
518 | D: FromPyObject<'p>,
| D: FromPyObject<'p>,
| ^^^^^^^^^^^^^^^^ required by this bound in `pyo3::Py::<T>::extract`

0 comments on commit 48aba84

Please sign in to comment.