pyo3/tests/ui/invalid_pymethod_receiver.rs
2022-03-23 08:07:28 +01:00

12 lines
175 B
Rust

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