Fix ui test
This commit is contained in:
parent
2eb51ceba9
commit
4fc0cdd636
|
@ -47,6 +47,7 @@ fn _test_compile_errors() {
|
|||
tests_rust_1_56(&t);
|
||||
tests_rust_1_57(&t);
|
||||
tests_rust_1_58(&t);
|
||||
tests_rust_1_60(&t);
|
||||
|
||||
#[rustversion::since(1.49)]
|
||||
fn tests_rust_1_49(t: &trybuild::TestCases) {
|
||||
|
@ -79,7 +80,6 @@ fn _test_compile_errors() {
|
|||
#[rustversion::since(1.58)]
|
||||
fn tests_rust_1_58(t: &trybuild::TestCases) {
|
||||
t.compile_fail("tests/ui/invalid_pyfunctions.rs");
|
||||
t.compile_fail("tests/ui/invalid_pymethod_receiver.rs");
|
||||
t.compile_fail("tests/ui/invalid_pymethods.rs");
|
||||
t.compile_fail("tests/ui/missing_clone.rs");
|
||||
t.compile_fail("tests/ui/not_send.rs");
|
||||
|
@ -91,6 +91,14 @@ fn _test_compile_errors() {
|
|||
|
||||
#[rustversion::before(1.58)]
|
||||
fn tests_rust_1_58(_t: &trybuild::TestCases) {}
|
||||
|
||||
#[rustversion::since(1.60)]
|
||||
fn tests_rust_1_60(t: &trybuild::TestCases) {
|
||||
t.compile_fail("tests/ui/invalid_pymethod_receiver.rs");
|
||||
}
|
||||
|
||||
#[rustversion::before(1.60)]
|
||||
fn tests_rust_1_60(_t: &trybuild::TestCases) {}
|
||||
}
|
||||
|
||||
#[cfg(feature = "nightly")]
|
||||
|
|
|
@ -9,6 +9,6 @@ error[E0277]: the trait bound `i32: From<&PyCell<MyClass>>` is not satisfied
|
|||
<i32 as From<bool>>
|
||||
<i32 as From<i16>>
|
||||
<i32 as From<i8>>
|
||||
and 2 others
|
||||
and 71 others
|
||||
= note: required because of the requirements on the impl of `Into<i32>` for `&PyCell<MyClass>`
|
||||
= note: required because of the requirements on the impl of `TryFrom<&PyCell<MyClass>>` for `i32`
|
||||
|
|
Loading…
Reference in New Issue