aboutsummaryrefslogtreecommitdiffstats
path: root/testing/tests/ui/loop_cycle_empty.rs
blob: 4aa601072b69af61eb140d9e15166b3c92ebcfbd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// 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() {
}