askama/testing/tests/ui/loop_cycle_empty.rs
2022-01-31 13:12:09 +01:00

15 lines
390 B
Rust

// Nb. this test fails because currently an empty array "[]" is always a syntax error in askama,
// but even if this changes, this test should keep failing, but possibly with another error message
use askama::Template;
#[derive(Template)]
#[template(
source = r#"{% for v in values %}{{ loop.cycle([]) }}{{ v }},{% endfor %}"#,
ext = "txt"
)]
struct ForCycleEmpty;
fn main() {
}