mirror of
https://github.com/askama-rs/askama.git
synced 2026-01-19 23:26:41 +00:00
16 lines
684 B
Plaintext
16 lines
684 B
Plaintext
error: loop.cycle(…) cannot use an empty array
|
|
--> ForCycleEmpty.txt:1:29
|
|
"cycle([]) }}{{ v }},{% endfor %}"
|
|
--> tests/ui/loop_cycle_empty.rs:5:14
|
|
|
|
|
5 | source = r#"{% for v in values %}{{ loop.cycle([]) }}{{ v }},{% endfor %}"#,
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: loop.cycle(…) doesn't use generics
|
|
--> ForCycleGenerics.txt:1:29
|
|
"cycle::<u8>([]) }}{{ v }},{% endfor %}"
|
|
--> tests/ui/loop_cycle_empty.rs:12:14
|
|
|
|
|
12 | source = r#"{% for v in values %}{{ loop.cycle::<u8>([]) }}{{ v }},{% endfor %}"#,
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|