askama/testing/tests/ui/loop_cycle_empty.stderr
2024-07-30 14:04:19 +02:00

8 lines
325 B
Plaintext

error: loop.cycle(…) cannot use an empty array
--> ForCycleEmpty.txt:1:35
"[]) }}{{ v }},{% endfor %}"
--> tests/ui/loop_cycle_empty.rs:5:14
|
5 | source = r#"{% for v in values %}{{ loop.cycle([]) }}{{ v }},{% endfor %}"#,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^