pyo3/tests/ui/deprecations.rs

20 lines
215 B
Rust

#![deny(deprecated)]
use pyo3::prelude::*;
#[pyclass]
struct DeprecatedCall;
#[pymethods]
impl DeprecatedCall {
#[call]
fn deprecated_call(&self) {}
}
#[pyclass(gc)]
struct DeprecatedGc;
fn main() {
}