pyo3/tests/ui/invalid_intern_arg.rs
2022-06-02 09:57:58 +01:00

7 lines
152 B
Rust

use pyo3::Python;
fn main() {
let foo = if true { "foo" } else { "bar" };
Python::with_gil(|py| py.import(pyo3::intern!(py, foo)).unwrap());
}