pyo3/tests/ui/deprecations.rs
2022-02-15 08:01:46 +00:00

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() {
}