pyo3/tests/ui/static_ref.rs

10 lines
141 B
Rust
Raw Normal View History

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