pyo3/tests/ui/deprecations.rs

17 lines
174 B
Rust
Raw Normal View History

#![deny(deprecated)]
use pyo3::prelude::*;
#[pyclass]
struct MyClass;
#[pymethods]
impl MyClass {
#[__new__]
fn new() -> Self {
Self
}
}
fn main() {}