pyo3/tests/ui/deprecations.rs

20 lines
215 B
Rust
Raw Normal View History

#![deny(deprecated)]
use pyo3::prelude::*;
2021-10-17 21:49:10 +00:00
#[pyclass]
struct DeprecatedCall;
#[pymethods]
impl DeprecatedCall {
#[call]
fn deprecated_call(&self) {}
}
2022-02-11 08:31:06 +00:00
#[pyclass(gc)]
struct DeprecatedGc;
fn main() {
}