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

9 lines
487 B
Plaintext

error[E0435]: attempt to use a non-constant value in a constant
--> tests/ui/invalid_intern_arg.rs:5:55
|
5 | Python::with_gil(|py| py.import(pyo3::intern!(py, foo)).unwrap());
| ------------------^^^-
| | |
| | non-constant value
| help: consider using `let` instead of `static`: `let INTERNED`