pyo3/tests/ui/static_ref.rs
2020-06-08 02:06:15 +01:00

10 lines
141 B
Rust

use pyo3::prelude::*;
use pyo3::types::PyList;
#[pyfunction]
fn static_ref(list: &'static PyList) -> usize {
list.len()
}
fn main() {}