pyo3/tests/ui/invalid_pymethod_receiver.rs

12 lines
175 B
Rust
Raw Normal View History

use pyo3::prelude::*;
#[pyclass]
struct MyClass {}
#[pymethods]
impl MyClass {
2022-03-23 07:07:28 +00:00
fn method_with_invalid_self_type(slf: i32, py: Python<'_>, index: u32) {}
}
fn main() {}