pyo3/tests/ui/reject_generics.rs
David Hewitt c5ba1f0632
pyclass: better error and explanation why lifetimes are disallowed (#2633)
* pyclass: better error and explanation why lifetimes are disallowed

* extend detail on lifetimes
2022-09-22 11:14:06 +02:00

14 lines
152 B
Rust

use pyo3::prelude::*;
#[pyclass]
struct ClassWithGenerics<A> {
a: A,
}
#[pyclass]
struct ClassWithLifetimes<'a> {
a: &'a str,
}
fn main() {}