#![feature(specialization)]
extern crate pyo3;
use pyo3::prelude::*;
#[pyclass]
struct Test<'a> {
inner: &'a Vec<u8>,
token: PyToken
}
#[pymethods]
impl<'a> Test<'a> {
#[new]
fn __new__(obj: &PyRawObject, v: &'a Vec<u8>) -> PyResult<()> {
obj.init(|t| {
Pretty{ inner: v, token: t }
})
}
}
error: expected `:`, found `>`
--> src\lib.rs:161:1
|
161 | #[pymethods]
| ^^^^^^^^^^^^ expected `:`
error message is too difficult to understand.